Importing Images...

Links for php scripts

Moderators: macek, egami, gesf

crsk
New php-forum User
New php-forum User
Posts: 6
Joined: Tue Aug 05, 2003 12:28 am
Contact:

Importing Images...

Postby crsk » Wed Aug 06, 2003 1:20 am

Okay, I have a site where I type in a employee ID no. and it brings their details up thats all up and running. I have access to all of the employees pictures off their access cards, I want to be able to type in the ID number as usual and it display their image and their details... any ideas?

I'm guessing it's something to do with blobs in mysql but I'm not to sure as I'm a newbie at this.

One other thing is, I'm asuming that there is another way other than via mySQL, becuase from my limited experience with mySQL it doesn't like working things out. Maybe creating another file with all of the images in, and then write PHP code to extract the pictures from that page....

Joel
New php-forum User
New php-forum User
Posts: 193
Joined: Sat Mar 29, 2003 11:57 pm
Location: Auckland, New Zealand
Contact:

Postby Joel » Wed Aug 06, 2003 2:29 am

On the page for the access cards you could get the employee ID from the database. And then depending on the names of the files of the access cards use, the id.

Lets say you have all the access cards in a folder cold cardimages and the files are all like "card234.jpg"

Code: Select all

//Mysql query and row select
echo "<img src=\"".$row['employeeid']."\">";

sigix
php-forum Active User
php-forum Active User
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

Postby sigix » Thu Aug 07, 2003 12:51 am

yes it is good way of doing it :!:


Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest