I just moved a script from a server to another and I am getting this error now.
Both servers have the same PHP versions.
The error :
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/www/94785434238541841303849314ba4fa5/web/webapp/screen_3.php on line 85
and here is the screen_3.php relevant error code :
<?php
$sel="select * from user where sess_id='".$sess_id."' order by id desc";
$res=mysql_query($sel);
$val=mysql_fetch_array($res);
//$seli="select * from "
//echo $val['w1'];
//echo $val['w2'];
//echo $val['w3'];
//$val['w1']= 'arrow';
?>
Thank you for your replies.