[code="php"] $user_info = urldecode($_GET['info']);//查询字符
mysql_connect("localhost","root","123456") or die(mysql_error);
mysql_select_db("hl");
mysql_query("set names utf8");
$sql="select * from users where user_info like '%$user_info%'";
$return;
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
@$return.=$row['user_info'].",";
}
echo $return;[/code]
因为MySql没有记录集,如何判断查询的记录不存在的情况?