Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP-未找到任何记录_Php_Mysql_Record - Fatal编程技术网

PHP-未找到任何记录

PHP-未找到任何记录,php,mysql,record,Php,Mysql,Record,我对PHP非常、非常陌生,我正在尝试修复其他人编写的代码。我设法做了一些修复,现在搜索工作正在进行,但我就是无法得到“找不到记录”的消息 我是一个尝试自学的新手,所以任何反馈都是非常感谢的。先谢谢你 这是我的密码: 大宗报价 扩展名*“width=“10”height=“10”alt=”“title=”“/> 扩展名*“width=”10“height=”10“alt=”title=“”/> 图像ID 大宗报价 你只是想显示这个信息?将其置于while循环之前或之后: <?php

我对PHP非常、非常陌生,我正在尝试修复其他人编写的代码。我设法做了一些修复,现在搜索工作正在进行,但我就是无法得到“找不到记录”的消息

我是一个尝试自学的新手,所以任何反馈都是非常感谢的。先谢谢你

这是我的密码:

大宗报价



扩展名*“width=“10”height=“10”alt=”“title=”“/> 扩展名*“width=”10“height=”10“alt=”title=“”/>
图像ID
大宗报价


你只是想显示这个信息?将其置于while循环之前或之后:

<?php 
if (mysql_num_rows($rs_main) == 0) {
    echo "No records found.";
}
?>

查询后,计算结果:

if(mysql_num_rows($rs_main)>0)
{
 //put your code above here 
}
else
{
 echo 'No records found!';
}

非常感谢你,丹!成功了!我真的很感谢你的帮助。干杯
if(mysql_num_rows($rs_main)>0)
{
 //put your code above here 
}
else
{
 echo 'No records found!';
}