I'm stuck. I'm doing something wrong here and was hoping it would be obvious to folks more familiar with php than myself.
// # --------------------------
// # Let's grab the news items
$Newsboard_q = addslashes($newsboard);
$query = "
SELECT B_Number,B_Posted,B_Last_Post,B_Username,B_Subject,B_Body,B_Main
FROM w3t_Posts
WHERE B_Number = B_Main
AND B_Board = '$Newsboard_q'
ORDER BY B_Last_Post DESC
LIMIT $totalnews
";
$sth = $dbh -> do_query($query);
(the above line of code is where the error says it's happening, which I guess is referencing my database syntax... ?)
while ($rows = $dbh -> fetch_array($sth) ) {
list($Number,$Posted,$Last,$Username,$Subject,$Body,$Main) = $rows;
$dbh -> finish_sth($sth);
[]/testimages/icons/smile.gif[/] 6 []/testimages/icons/frown.gif[/]
Screamers