- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 61 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - SQL Error [ ]
Author
Message
Pain
Nuke Soldier
Joined: Apr 23, 2003
Posts: 13
Posted:
Wed Apr 23, 2003 5:00 pm
I didn't see a Help catagory here so I will post this here. When viewing my site there is an error at the bottom of the page:
Quote:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/pain/public_html/includes/sql_layer.php on line 286
What causes this and how can I fix it?
My Site Is Here: http://www.painsworld.com
Raven
General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Wed Apr 23, 2003 5:07 pm
ipek
Nuke Cadet
Joined: Apr 30, 2003
Posts: 7
Posted:
Wed Apr 30, 2003 1:05 pm
getting warning by each page on top. function fetch_row is fixed according the tips on http://nukecops.com/postt1.html, existing code is:
Quote:
function sql_fetch_array(&$res, $nr=0)
{
global $dbtype;
switch ($dbtype)
{
case "MySQL":
$row = array();
$row = mysql_fetch_array($res);
return $row;
break;;
i'm using phpnuke 6 : http://www.turkijeplein.net
any idea
Raven
General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Wed Apr 30, 2003 1:46 pm
ipek
Nuke Cadet
Joined: Apr 30, 2003
Posts: 7
Posted:
Thu May 01, 2003 10:21 am
ipek
Nuke Cadet
Joined: Apr 30, 2003
Posts: 7
Posted:
Thu May 01, 2003 11:02 am
i fixed it:
a table which i made for the block who is where gave error:
Quote:
Can't open file: 'nuke_whoiswhere.MYI'. (errno: 145)
i made the tabel again, so it was solved. I don't know why the table was crashed, but thanx
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum