Jump to content

SELECT Image from database.


imrie

Recommended Posts

Why wont the is work?

echo "<table border='1'>";echo "<tr> <th>Title</th> <th>Image</th> <th>Author</th> <th>Total Downloads</th> <th>Download</th></tr>";// keeps getting the next row until there are no more to getwhile($row = mysql_fetch_array( $result )) {	// Print out the contents of each row into a table	echo "<tr><td>"; 	echo $row['Title'];	echo "</td><td>"; 	echo "<img src="$row['Image_file']" /> .;	echo "</td><td>";	echo "<a href=\"http://www.blah.com/downloads?id=$row[userid]\">$row[userid]</a>";	echo "</td></tr>";

Help whats wrong?

echo "<img src="$row['Image_file']" /> .;

Thanks,

Link to comment
Share on other sites

You know which line is the problem, why don't you fix it? Read the reference on strings, the answer is there:http://www.php.net/manual/en/language.type...g.syntax.doubleI'm not trying to be difficult, but this is a basic language construct (building strings) that you should know about. It would be better for you to read the reference and figure out the answer yourself, it will help you understand it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...