it's returning this error aoubt how in
PHP Code:
while ($row1 = mysql_fetch_array($r1))
$r1 is not a valid MySQL resource for mysql_fetch_array
I'm sure I did everything right (including connecting to the database). To prove it: when I replace
PHP Code:
$q1 = "SELECT * FROM quotes WHERE id='$random' LIMIT 1";
with
PHP Code:
$q1 = "SELECT * FROM quotes WHERE 1 LIMIT 1";
It returns with my first quote.
Just wondering...how do I fix the error? Thanks!