hey all,
ok so i literly learn php lyk 2 hrs ago, so im UBER newbie, so any help would be great.
So i have a database, called joshy07 with a table called works in it. That table has 4 colums, ID, which is generated automaticly, picture, which is a url, client, which is clients name, and type, which is what type of work it is, eg. print, identity etc.
So i have
include('connect.php');
$result = mysql_query("SELECT * FROM works")
or die(mysql_error());
echo "<table border='0' width='700'>";
echo "<tr>";
// keeps getting the next row until there are no more to get
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
echo "<td width='233'>";
echo $row['picture'];
echo "</td>";
}
echo "</tr></table>";
which displays the picture data from the table, BUT its just the text, which i knew would happen. So now i need to put that url inside an image tag.
This mite be confussing, and i have no idea, ive tried so many different things and asked everyone i know but cant work it out.
Please help me,
Thanks
SquishyB