desjardins2010 Posted December 13, 2010 Share Posted December 13, 2010 or should I say can you tell me WHAT is wrong? getting error on line 19 Parse error: syntax error, unexpected '[' in /home/heaven/public_html/tester/view_thread2.php on line 19 <?php include("connect.php"); mysql_select_db("heaven_forum") or die ("Could Not Select Database"); $recent = mysql_query("SELECT phpbb_posts.id AS post_id, phpbb_posts.topic_id AS topic_id, phpbb_posts.forum_id AS forum_id, phpbb_posts.poster_id AS poster_id, phpbb_topics.topic_title AS title, phpbb_users.username AS usernameFROM phpbb_posts, phpbb_topics ON phpbb_posts.topic_id=phpbb_topics.id, users ON phpbb_posts.poster_id=users.idORDER BY post_time DESC LIMIT 5"); //pull array $recent_row = mysql_fetch_assoc($recent); //set varibles pulled $topic_name = $recent ['title']; $poster = $recent['usernameFROM']; echo $topic_name; echo "Posted By: $poster"; ?> Link to comment https://forums.phpfreaks.com/topic/221520-anyone-see-anything-wrong/ Share on other sites More sharing options...
desjardins2010 Posted December 13, 2010 Author Share Posted December 13, 2010 srry error is Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/heaven/public_html/tester/view_thread2.php on line 19 Posted By: Link to comment https://forums.phpfreaks.com/topic/221520-anyone-see-anything-wrong/#findComment-1146702 Share on other sites More sharing options...
Maq Posted December 13, 2010 Share Posted December 13, 2010 Your query is probably failing. Temporarily add or die(mysql_error()) to the mysql_query to see what's wrong. Link to comment https://forums.phpfreaks.com/topic/221520-anyone-see-anything-wrong/#findComment-1146711 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.