futurewii Posted June 13, 2008 Share Posted June 13, 2008 Sorry, Ill post and try help people out and not act like such a noob. This is what i want to happen in this script.. 1. The user looks at a list of database entries (DONE AND WORKING) 2. The user can click on a link of one of the entries and they are taken to a page for that entry which is assigned via an ID number (DONE AND WORKING) 3. The page should display the contents of the "title" row from the database at the top, The contents of the "review" row, then the contents of the "image" in an Image tag (users post a direct link to an image file), then finally it should say Review by "Name" (whatever they entered in the row). help is MUCHLY appreciated for the soundings of a begging noob <h1><?php echo $_GET['title'];?> Review..</h1> <?php include "includes/conn.php"; $result = mysql_query("SELECT * FROM wiireviews WHERE id = '".$_GET['id']."'") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { echo 'review'; echo "<br />"; echo "<img src=;'image'>"; echo "<br />"; echo "<p>Review by ['name']"; ?> Link to comment https://forums.phpfreaks.com/topic/110147-me-again-i-feel-guilty-now/ Share on other sites More sharing options...
DarkWater Posted June 13, 2008 Share Posted June 13, 2008 $row['image'], $row['title'], $row['review'], etc. Link to comment https://forums.phpfreaks.com/topic/110147-me-again-i-feel-guilty-now/#findComment-565258 Share on other sites More sharing options...
kenrbnsn Posted June 13, 2008 Share Posted June 13, 2008 Please use the tags around code, not . Ken Link to comment https://forums.phpfreaks.com/topic/110147-me-again-i-feel-guilty-now/#findComment-565271 Share on other sites More sharing options...
futurewii Posted June 13, 2008 Author Share Posted June 13, 2008 <h1><?php echo $_GET['title'];?> Review..</h1> <?php include "includes/conn.php"; $result = mysql_query("SELECT * FROM wiireviews WHERE id = '".$_GET['id']."'") or die(mysql_error()); while($row = mysql_fetch_array( $result )) { echo $row['review']; echo "<br />"; echo $row['image']; echo "<br />"; echo $row['name']; ;?> Got that now, but get the message.. [Parse error: syntax error, unexpected $end in /mounted-storage/home36c/sub005/sc28991-YIVP/futurewii.com/pages/reviews/wiireview.php on line 17 Thanks DarkWater you need a medal for all the help your giving me Ok sorry Link to comment https://forums.phpfreaks.com/topic/110147-me-again-i-feel-guilty-now/#findComment-565273 Share on other sites More sharing options...
kenrbnsn Posted June 13, 2008 Share Posted June 13, 2008 You didn't close the "while" loop with a "}". Ken Link to comment https://forums.phpfreaks.com/topic/110147-me-again-i-feel-guilty-now/#findComment-565277 Share on other sites More sharing options...
futurewii Posted June 13, 2008 Author Share Posted June 13, 2008 ah ha! success! thanks a million much appreciated, ill post a link to the forums from my site now Link to comment https://forums.phpfreaks.com/topic/110147-me-again-i-feel-guilty-now/#findComment-565278 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.