dit geeft de laatste post weer...
Warning: Supplied argument is not a valid MySQL result resource in
/home/zippie/HTML/block-Articles_10New.php on line 13
krijg ik dan als error
en de table is:
# Tabel structuur voor tabel nuke_seccont
DROP TABLE IF EXISTS nuke_seccont;
CREATE TABLE nuke_seccont (
artid int(11) DEFAULT '0' NOT NULL auto_increment,
secid int(11) DEFAULT '0' NOT NULL,
title text NOT NULL,
content text NOT NULL,
counter int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (artid)
);
Wat is er nou fout aan? ik zie de fout niet en volgens mij is er gewoon nix fout, het klinkt gek, maar ik snap er echt helemaal niets meer van. iemand een idee
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| <? if (eregi("block-Articles_10New.php",$PHP_SELF)) { Header("Location: index.php"); die(); } global $prefix; $a = 1; $result = mysql_query("select artid, title from $prefix".nuke_seccont." order by time DESC limit 0,10"); while(list($artid, $title) = mysql_fetch_row($result)) { $title2 = ereg_replace("_", " ", $title); if(strlen($title2) > 15) { $title2 = substr($title2,0,15); $title2 .= ".."; } $content .= "<b><big>&middot;</big></b> $a: <a href=\"sections.php?op=viewarticle&artid=$artid\">$title2</a><br>"; $a++; } ?> |
Warning: Supplied argument is not a valid MySQL result resource in
/home/zippie/HTML/block-Articles_10New.php on line 13
krijg ik dan als error
en de table is:
# Tabel structuur voor tabel nuke_seccont
DROP TABLE IF EXISTS nuke_seccont;
CREATE TABLE nuke_seccont (
artid int(11) DEFAULT '0' NOT NULL auto_increment,
secid int(11) DEFAULT '0' NOT NULL,
title text NOT NULL,
content text NOT NULL,
counter int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (artid)
);
Wat is er nou fout aan? ik zie de fout niet en volgens mij is er gewoon nix fout, het klinkt gek, maar ik snap er echt helemaal niets meer van. iemand een idee