Jump to content

Me again, I feel guilty now


futurewii

Recommended Posts

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


				<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  ;D

 

Ok sorry :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.