Home >Backend Development >PHP Tutorial >Example of PHP accessing MySQL database
PHP存取MySQL数据库的示例:
$result=mysql_db_query("usernamedb","select * from test"); while($userdb=mysql_fetch_row($result)) { echo "<".$userdb[0].">: ".$userdb[1]." ".$userdb[2]." n"; } mysql_close($connect_id); ?> |