мϊкэ
14-07-2005, 04:01 PM
my news system worked perfectly fine yesterday right but now its stopped working :'( i get this error on show_news.php
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xenigmac/public_html/members/news/show_news.php on line 5
here is lines 1 - 7 on show_news.php
<?
include("db.php");//the database connection file
$getnews = mysql_query("SELECT * FROM extreme_news ORDER BY id DESC");
while($r=mysql_fetch_array($getnews)){
extract($r);
and here is the mysql query
CREATE TABLE `extreme_news` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`user` varchar(22) NOT NULL default '',
`date` varchar(50) NOT NULL default '0000-00-00',
`message` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1;
what is wrong :@
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xenigmac/public_html/members/news/show_news.php on line 5
here is lines 1 - 7 on show_news.php
<?
include("db.php");//the database connection file
$getnews = mysql_query("SELECT * FROM extreme_news ORDER BY id DESC");
while($r=mysql_fetch_array($getnews)){
extract($r);
and here is the mysql query
CREATE TABLE `extreme_news` (
`id` int(11) NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`user` varchar(22) NOT NULL default '',
`date` varchar(50) NOT NULL default '0000-00-00',
`message` text NOT NULL,
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=1;
what is wrong :@