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. Link to comment https://forums.phpfreaks.com/topic/26785-problems/ 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? Link to comment https://forums.phpfreaks.com/topic/26785-problems/#findComment-122485 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 Link to comment https://forums.phpfreaks.com/topic/26785-problems/#findComment-122486 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.