Hier het scriptje, het geeft de laatste 10 postings aan maar ik krijg een error:
Warning: Supplied argument is not a valid MySQL result resource in /home/zippie/HTML/Lastpost.php on line 43
--------> is dus regel 43
De mysql tabel is:
CREATE TABLE nuke_sections (
secid int(11) NOT NULL auto_increment,
secname varchar(40) NOT NULL default '',
image varchar(50) NOT NULL default '',
PRIMARY KEY (secid)
) TYPE=MyISAM;
De tabel doet het wel het ligt dus puur aan het script
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
23
24
| <? if (eregi("block-Sections_Lastpost.php",$PHP_SELF)) { Header("Location: index.php"); die(); } global $prefix; $content = ""; $content .= "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">"; $content .= "<tr valign=\"top\"><td>"; $result = mysql_query("SELECT artid, title, secid, counter FROM $prefix"._seccont." ORDER BY artid desc LIMIT 10"); Hier zit de error --->>> while (list($artid, $title, $secid, $counter) = mysql_fetch_array($result)) { $result2 = mysql_query("select secid, secname from $prefix"._sections." where secid='$secid'"); list($secid, $secname) = mysql_fetch_row($result2); $content .= "<font size=\"2\"><strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?op=modload&name=Sections&file=index&sec_op=viewarticle&amp;artid=$artid\">"; $content .= "$title</a> - <FONT COLOR=RED>[$secname]</FONT> ($counter)"; $content .= "</font><BR>"; } $content .= "</td></tr><tr><TD align=\"right\">"; $content .= "<BR><a href=modules.php?op=modload&name=Sections&file=index>§óŜh€å³¹...</a>"; $content .= "</TD></tr>"; $content .= "</table>"; ?> |
Warning: Supplied argument is not a valid MySQL result resource in /home/zippie/HTML/Lastpost.php on line 43
--------> is dus regel 43
De mysql tabel is:
CREATE TABLE nuke_sections (
secid int(11) NOT NULL auto_increment,
secname varchar(40) NOT NULL default '',
image varchar(50) NOT NULL default '',
PRIMARY KEY (secid)
) TYPE=MyISAM;
De tabel doet het wel het ligt dus puur aan het script
Iemand een idee