I'm getting an error for this
$query="select * from `bill`";
$result=mysql_query($query) or die(mysql_error());
while($row=mysql_fetch_array($result)){ //this is my line 18
$row_id=$row['row_id'];
.
.
//148 more fields
}
this is the error
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in D:\wamp\www\bill\index.php on line 18
$query="select * from `bill`";
$result=mysql_query($query) or die(mysql_error());
while($row=mysql_fetch_array($result)){ //this is my line 18
$row_id=$row['row_id'];
.
.
//148 more fields
}
this is the error
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in D:\wamp\www\bill\index.php on line 18