Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Need a Point in the Right Direction. Re: Need a Point in the Right Direction.

#64245
bmdsherman
Member

I would personally make a mysql database with the following fields: name, description, thumbnail_url, and fullsize_url; and then use something like like this to display the photos:

Code:
$conn = mysql_connect(‘localhost, ‘username’, ‘password’) or die (‘Error’);
mysql_select_db(‘name’);

$sql = “SELECT * FROM dbname”;
$result = mysql_query($sql);

echo ‘

‘;

while($row = mysql_fetch_assoc($result)){

$name=$row[‘name’];
$src=$row[‘thumbnail_url’];
$src_full=$row[‘fullsize_url’];

echo ‘

‘;}

‘.$name.’