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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
WithHisStripes
Forum Contributor
Posts: 131
Joined: Tue Sep 13, 2005 7:48 pm

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

Post 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;
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply