Maison >développement back-end >tutoriel php >PHP 存取 MySQL 数据库的一个例子_php基础
$result=mysql_db_query("usernamedb","select * from test"); while($userdb=mysql_fetch_row($result)) { echo ": ".$userdb[1]." ".$userdb[2]." n"; } mysql_close($connect_id); ?> |