Connecting Tech Pros Worldwide Help | Site Map

PHP mySQL - table of images

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 09:19 AM
gsb
Guest
 
Posts: n/a
Default PHP mySQL - table of images

Not sure is best place to ask, but...
What should the mySQL table look like to save and extract a series of
images.
I want to "insert" an image by name (string) and later "select" and send it
to a web page.

Thanks,

gsb



  #2  
Old July 17th, 2005, 09:20 AM
adam@adamcoppin.com
Guest
 
Posts: n/a
Default Re: PHP mySQL - table of images

the table should be reasonably simple, just 3 columns:

image_id (auto incrementing integer)
image_name (string of pre-determined length)
image_url (absolute or referential, either way this would be a
string... be sure to give it plenty of room though!)

That should be all you need... if you are finding yourself needing yet
more information at a later date, columns are easily added to existing
records. this method should allow you to retrieve the image url by
referring either the image_id or the image_name

  #3  
Old July 17th, 2005, 09:23 AM
Geoff Berrow
Guest
 
Posts: n/a
Default Re: PHP mySQL - table of images

I noticed that Message-ID:
<1098928551.325015.286180@z14g2000cwz.googlegroups .com> from
adam@adamcoppin.com contained the following:
[color=blue]
>image_id (auto incrementing integer)
>image_name (string of pre-determined length)
>image_url (absolute or referential, either way this would be a
>string... be sure to give it plenty of room though!)
>
>That should be all you need... if you are finding yourself needing yet
>more information at a later date, columns are easily added to existing
>records. this method should allow you to retrieve the image url by
>referring either the image_id or the image_name[/color]

Short description (useful to automatically add the alt="" attribute) and
long description are useful too.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.