html中select语句读取mysql表中内容_php基础
程序员文章站
2022-04-09 19:54:10
...
$record=0;
$db=@mysql_pconnect('localhost','root');
@mysql_select_db('1234',$db);
$strsql="select * from 1234_data";
$result=@mysql_query($strsql);
$data=@mysql_fetch_array($result);
$record=@mysql_num_rows($result);
echo "\n";
?>
$db=@mysql_pconnect('localhost','root');
@mysql_select_db('1234',$db);
$strsql="select * from 1234_data";
$result=@mysql_query($strsql);
$data=@mysql_fetch_array($result);
$record=@mysql_num_rows($result);
echo "\n";
?>
上一篇: joomla数据库操作示例代码_PHP
下一篇: 六代单传的老代码,到底能不能动