View Single Post
  #8 (permalink)  
Old Mar 28th, 2008, 19:48
Jack Franklin's Avatar
Jack Franklin Jack Franklin is offline
Resources Administrator

SuperMember
Join Date: May 2007
Location: Cornwall, England
Posts: 1,268
Blog Entries: 7
Thanks: 10
Thanked 4 Times in 4 Posts
Re: Database and images

Ok.
PHP: Select all

mysql_connect("""""") or die(mysql_error());
mysql_select_db("fieldworks") or die(mysql_error());
$data mysql_query("SELECT * FROM ")
or die(
mysql_error());

(
Get data from db and then
You need to create an array and go through one by one using 'while...'
echo '<img src="'.$imageURL.'" alt ="Bill" />';
Reply With Quote