soccer022483
09-01-2004, 04:05 PM
First off, here is the php code that created the table:
----------------------------------------------------
CREATE TABLE `shoutbox` (
`id` int(11) NOT NULL auto_increment,
`name` text NOT NULL,
`message` longtext NOT NULL,
`time` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM;
----------------------------------------------------
I keep getting this error:
----------------------------------------------------
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site325/fst/var/www/html/shoutbox.php on line 58
----------------------------------------------------
Here is line 58:
----------------------------------------------------
while($r=mysql_fetch_array($result))
{stuff in here}
----------------------------------------------------
Here is the line right before (line 57)
----------------------------------------------------
$result = mysql_query("select * from shoutbox order by id desc limit 5");
----------------------------------------------------
Can someone tell me why I keep getting this error? The shoubox worked fine when I tested it locally using apache, but when I upload it to my domain it give me the error. Much thanks :)
Austin
----------------------------------------------------
CREATE TABLE `shoutbox` (
`id` int(11) NOT NULL auto_increment,
`name` text NOT NULL,
`message` longtext NOT NULL,
`time` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM;
----------------------------------------------------
I keep getting this error:
----------------------------------------------------
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/virtual/site325/fst/var/www/html/shoutbox.php on line 58
----------------------------------------------------
Here is line 58:
----------------------------------------------------
while($r=mysql_fetch_array($result))
{stuff in here}
----------------------------------------------------
Here is the line right before (line 57)
----------------------------------------------------
$result = mysql_query("select * from shoutbox order by id desc limit 5");
----------------------------------------------------
Can someone tell me why I keep getting this error? The shoubox worked fine when I tested it locally using apache, but when I upload it to my domain it give me the error. Much thanks :)
Austin