eXodus Posted November 10, 2006 Share Posted November 10, 2006 Whats worng with this.[code]$getart = mysql_query("SELECT * FROM articles WHERE active = '0'");$artnum = mysql_num_rows($getart);while($art = mysql_fetch_array($getart))$title = $art[title];$postdate = $art[postdate];$author = $art[author];$description = bbcode($art[description]);$content = bbcode($art[content]);{echo("<strong>Title:</strong> $title<br /><strong>Date:</strong> $postdate<br /><strong>User:</strong> $author<br /><strong>Description:</strong> $description<br /><br /><strong>Full Content:</strong> $content<br /><br /><a href=\"index.php?page=admin&act=article_submit&func=approve&id=$art[id]\">Approve</a> | <a href=\"index.php?page=admin&act=article_submit&func=decline&id=$art[id]\">Decline</a>");}[/code]Any ideas :|Nothing displays when requested. Quote Link to comment Share on other sites More sharing options...
Destruction Posted November 10, 2006 Share Posted November 10, 2006 [code]while($art = mysql_fetch_array($getart))$title = $art[title];$postdate = $art[postdate];$author = $art[author];$description = bbcode($art[description]);$content = bbcode($art[content]);{[/code]perhaps because your brace is in the wrong place? Quote Link to comment Share on other sites More sharing options...
btherl Posted November 10, 2006 Share Posted November 10, 2006 Moving that brace to immediately after the while() should fix it.[code]while($art = mysql_fetch_array($getart)){$title = $art[title];...[/code]And remove the brace after the "$content = ..." line Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.