Firefly
this is what I have, GO here
http://forums.realwebhost.net/marquee.php
problem somewhere
PHP Code:
<?php
error_reporting(7);
chdir("/home/realweb/public_html/forums/");
require("./global.php");
$latestposts=$DB_site->query("SELECT post.postid AS id,LEFT(post.pagetext,20) AS text FROM post LEFT JOIN thread ON thread.threadid WHERE thread.forumid<>33 AND thread.forumid<>30 AND thread.forumid<>38 GROUP BY post.postid ORDER BY post.dateline DESC LIMIT 10");
$marquee = "";
while ($latestpost=$DB_site->fetch_array($latestposts)) {
if ($marquee) {
$marquee .= " "; // String to seperate between each link
}
$marquee .= "<a href=\"showthread.php?s=$session[sessionhash]&postid=$latestpost[id]\">$latestpost[text] ...</a>";
}
?>
<? echo("$marquee"); ?>
GET this error still
Database error in vBulletin: Invalid SQL: SELECT post.postid,LEFT(post.pagetext,20) FROM post LEFT JOIN thread ON thread.threadid WHERE thread.forumid<>30 AND thread.forumid<>33 AND thread.forumid<>38 ORDER BY post.dateline DESC LIMIT 10
mysql error: Got error 28 from table handler
mysql error number: 1030
Date: Monday 03rd of September 2001 01:58:08 PM
Script: /marquee.php
Referer: