Home > Article > Backend Development > An example of PHP accessing MySQL database_PHP tutorial
$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); ?> |