当然有。签出
mysql_query,以及
mysql_fetch_row是否使用MySQL。
PHP手册中的
示例:
<?php$result = mysql_query("SELECt id,email FROM people WHERe id = '42'");if (!$result) { echo 'Could not run query: ' . mysql_error(); exit;}$row = mysql_fetch_row($result);echo $row[0]; // 42echo $row[1]; // the email value?>


