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

WBOY
Release: 2016-06-02 11:28:56
Original
961 people have browsed it

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写错了?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!