<?php
if($_SESSION['user']){
$password="joshua";
$host="ecomm1.csug.rochester.edu";
$user="arms";
$link=mysql_connect($host,$user,$password);
$q="SELECT * FROM threads ORDER BY lpost LIMIT='30'";
$r=mysql_db_query("lore",$q,$link);
while($row=mysql_fetch_array($r)){ (<<< Line 68)
$id = $row['0'];
$topic = $row['1'];
$author = $row['2'];
$fpost = $row['3'];
$lpost = $row['4'];
$lauthor = $row['5'];
$replies = $row['6'];
print("<tr><td valign=\"top\"> <td valign=\"top\"><a href=\"thread.php?thread=$id\">$topic</a><td valign=\"top\">$author<br><i><font size=\"-1\" color=\"#AAAAAA\">$fpost</font><td valign=\"top\">$replies<td valign=\"top\">$lauthor<br><font size=\"-1\" color=\"#AAAAAA\"><i>$lpost</i>"
}
}
?>
Returned on-page error: "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/arms/public_html/lore/mb/index.php on line 68"
IF you have any offerings of help, please share them.
if($_SESSION['user']){
$password="joshua";
$host="ecomm1.csug.rochester.edu";
$user="arms";
$link=mysql_connect($host,$user,$password);
$q="SELECT * FROM threads ORDER BY lpost LIMIT='30'";
$r=mysql_db_query("lore",$q,$link);
while($row=mysql_fetch_array($r)){ (<<< Line 68)
$id = $row['0'];
$topic = $row['1'];
$author = $row['2'];
$fpost = $row['3'];
$lpost = $row['4'];
$lauthor = $row['5'];
$replies = $row['6'];
print("<tr><td valign=\"top\"> <td valign=\"top\"><a href=\"thread.php?thread=$id\">$topic</a><td valign=\"top\">$author<br><i><font size=\"-1\" color=\"#AAAAAA\">$fpost</font><td valign=\"top\">$replies<td valign=\"top\">$lauthor<br><font size=\"-1\" color=\"#AAAAAA\"><i>$lpost</i>"
}
}
?>
Returned on-page error: "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/arms/public_html/lore/mb/index.php on line 68"
IF you have any offerings of help, please share them.