For some reason when I run my script, I get this error:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/t/a/tattwo/public_html/gbx/testing/viewmain.php on line 26
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/t/a/tattwo/public_html/gbx/testing/viewmain.php on line 28
Line 26 of the code is:
$categories = mysql_query("SELECT * FROM " . $prefix . "categories ORDER BY catorder", $connection);
And line 28 of the code is:
while ($row = mysql_fetch_assoc($categories)) {
I can't figure out what's wrong. 🙁 I'd really appreciate any help I can get. 🙂