Heim >Backend-Entwicklung >PHP-Tutorial >make me cry make me smile PHP 存取 MySQL 数据库的一个例子
$result=mysql_db_query("usernamedb","select * from test"); while($userdb=mysql_fetch_row($result)) { echo ": ".$userdb[1]." ".$userdb[2]." n"; } mysql_close($connect_id); ?> |