未显示任何输出。但对于其他一些查询,代码运行而不是此查询。此外,此查询在终端上运行正常。请指导!!
<?php
$con=mysql_connect('servername','uname','passwd');
mysql_select_db('dbname');
$sql="select jobid from jobs where userid='xyz'";
$result=mysql_query($sql);
while($col=mysql_fetch_assoc($result)){
echo 'jobid:' . $col['jobid'] . '</br>';
}
?>