当前位置:Gxlcms > PHP教程 > php-PHP无法显示SQL表中的内容

php-PHP无法显示SQL表中的内容

时间:2021-07-01 10:21:17 帮助过:2人阅读

phpsql

提示错误是
Notice: Undefined variable: row in C:\wamp\www\test\PHP26\main.php on line 43
我要用PHP做个表格,显示出SQL表里的数据。
用了屏蔽警告。但是无法显示SQL的数据。
main.php
error_reporting(E_ALL & ~E_NOTICE);

$link_ID = mysql_pconnect('localhost','root','');
if(mysql_select_db('informat',$link_ID)){
echo "OK";
}else{
echo "NG";
}

$sql = "select * from users ";
$Query_ID = mysql_query($sql);
$num= mysql_num_rows($Query_ID);
while($Record = mysql_fetch_array($Query_ID)){}

?>




个人简历
td{ border:#666 solid 1px;}$(function(){ $(".button").mouseover(function(){$(this).css("backgroundColor","red")}) $(".button").mouseout(function(){$(this).css("backgroundColor","")})})


个人简历

名字

 

性别

 

籍贯

 

政治面貌

 

学历

 

出生日期

 

身高

 

爱好

 

学校

 

专业

 

地址

 

技能

 

电话

 

qq

 

邮箱

 



 

不知道哪里写错了。或者说是SQL写错了?

人气教程排行