Current location: Hot Scripts Forums » Programming Languages » PHP » Storing Pictures & Hyperlinks


Storing Pictures & Hyperlinks

Reply
  #1 (permalink)  
Old 04-23-04, 08:16 AM
UVL's Avatar
UVL UVL is offline
Newbie Coder
 
Join Date: Apr 2004
Location: Deep Underground
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Storing Pictures & Hyperlinks

What is the correct way to store Pictures and Hyperlinks within a MySQL database so they can be displayed when the user searches for what the pictures & hyperlinks relate to? For example:

If I'm designing a shopping cart for the products I sell that are books on tape then what do I have to do to allow customers to search through the database for the book they want and if it's in stock to show a picture of the book (along with description and so forth) plus a hyperlink which refers to a real audio file which is an audio sample of what the book on tape they are interested in sounds like.
Reply With Quote
  #2 (permalink)  
Old 04-23-04, 08:27 AM
Merovingian's Avatar
Merovingian Merovingian is offline
Newbie Coder
 
Join Date: Jan 2004
Location: Los Angeles
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by UVL
What is the correct way to store Pictures and Hyperlinks within a MySQL database so they can be displayed when the user searches for what the pictures & hyperlinks relate to? For example:

If I'm designing a shopping cart for the products I sell that are books on tape then what do I have to do to allow customers to search through the database for the book they want and if it's in stock to show a picture of the book (along with description and so forth) plus a hyperlink which refers to a real audio file which is an audio sample of what the book on tape they are interested in sounds like.
You can always use OsCommerce.
http://oscommerce.com
__________________
"Duo seguere aut de via decede" ...
Reply With Quote
  #3 (permalink)  
Old 04-23-04, 08:30 AM
UVL's Avatar
UVL UVL is offline
Newbie Coder
 
Join Date: Apr 2004
Location: Deep Underground
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Merovingian
You can always use OsCommerce.

http://oscommerce.com
I'm not actually making a shopping cart, I'm using it as an example to learn how to write such scripts and so forth. I would prefer to learn how to do it all myself, because the knowledge gained from such an application would benefit other scripts I may one day decide to write.
Reply With Quote
  #4 (permalink)  
Old 04-26-04, 08:56 AM
sadcox66 sadcox66 is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Store the path to the picture filename. Somewhere store the ImageDirectoryPath so when you move to another domain name you still have control over the display of the pictures

picture varchar(50) NOT NULL default '',
url varchar(128) NOT NULL default '',
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
display pictures + add easy fb2003 PHP 13 11-06-04 04:52 PM
Web Form Drop-Down Menu that changes pictures on selection. Whipsmack JavaScript 29 06-04-04 03:49 PM
One liner story pictures.. krimoral Script Requests 2 01-13-04 04:35 AM
Storing in global asa using application. syahrezan ASP 1 12-14-03 07:05 AM
I am looking for a script that prevents unauthorized downloading of pictures illiebillie Script Requests 12 07-29-03 10:15 PM


All times are GMT -5. The time now is 10:29 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.