Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Help needed with script
February 8, 2005, 8:28 am
rate this thread
Can anyone tell me what is wrong with this?
$sql = 'SELECT * ';
$sql .= 'FROM `PageElements` ';
$sql .= 'WHERE pageid = 1 LIMIT 0, 30';
while ($row = mysql_fetch_row($result)) * error message refers to this
for ($i=0; $i<mysql_num_fields($result); $i++)
echo $row[$i] . " ";
I am getting the following error message:
Warning: Supplied argument is not a valid MySQL result resource in
/home/nprie/public_html/index2.php on line 26 (i have put an asterisk
next to line 26 above) as above script is a fragment of a php file.