Page 1 of 1

Displaying images from a database or folder, need help...

Posted: Mon Aug 13, 2007 6:04 pm
by WithHisStripes
Heya,
I am an beginner/intermediate PHP programmer and I'm trying to write my own function that will pull images from a particular dir or from a MySQL db and display a particular number of them.

I intend to use this to display three graphics at a time on the home page of my website ( http://beta.firetree.us ) and enable them to be clickable for the user to then see a larger image or be directed to another page.

Can anyone help me decipher what commands I would need to use to do this?


Here's what I am initially thinking:

Code: Select all

mysql_connect('example');
mysql_db_connect('example');
$image_array = mysql_fetch_array('GET images_field FROM images_table');
print $image_array;

Posted: Tue Aug 14, 2007 8:53 am
by feyd