Home > Article > Backend Development > make me cry make me smile An example of PHP accessing MySQL database
$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); ?> |