Current location: Hot Scripts Forums » Programming Languages » PHP » php & mysql for site?


php & mysql for site?

Reply
  #1 (permalink)  
Old 11-08-04, 02:07 PM
dholl328 dholl328 is offline
New Member
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question php & mysql for site?

Starting a new web site. The site will contain about 100 items to be sold (flowers and plants). Is a mySql database needed or can php handle a db record as an array of about 8 columns times 100 rows? The record will need to have a picture field, short description, long description, cost. A unique identifier will be the key field on each record. Ideas?

Thanks for the kickoff.

Know of any sample code?


dh
Reply With Quote
  #2 (permalink)  
Old 11-08-04, 02:11 PM
CrAzY_CuStoMs CrAzY_CuStoMs is offline
Newbie Coder
 
Join Date: Oct 2004
Location: Ontario, Canada
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
You can do it either way, but SQL is better, cuts down the loading time. More secure aswell. id say go with SQL for something like this.
__________________
CuStoM PHP scripts for cheep =D Contact me anyways you need for all your php needs
AIM- Tallgeesegw3
ICQ- 206498877
MSN- silver_suicide_rider@hotmail.com
YIM- comming soon
IRC- server- irc.chat-solutions.org
channel- Crazy_customs
Reply With Quote
  #3 (permalink)  
Old 11-08-04, 02:29 PM
4n7hr4x 4n7hr4x is offline
Banned
 
Join Date: Jun 2004
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
yeah mySQL is the best, if you were to use php to record all that stuff to a text file it would be a huge mess and it would be very difficult to do
Reply With Quote
  #4 (permalink)  
Old 11-08-04, 02:41 PM
dholl328 dholl328 is offline
New Member
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks. Haven't done sql in years. time to brush off the programming cob webs i guess.. still looking for code samples...
Reply With Quote
  #5 (permalink)  
Old 11-08-04, 02:54 PM
4n7hr4x 4n7hr4x is offline
Banned
 
Join Date: Jun 2004
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
tell me if you need any help
Reply With Quote
  #6 (permalink)  
Old 11-08-04, 03:04 PM
dholl328 dholl328 is offline
New Member
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
i created the db structure in mysql (first pass but should be close): id#, category, short name, short desc, long desc, thumbpicture (blob), largepicture (blob), pricelow, pricemed, pricehigh;

next i will populate with several test records;

then it is time to link to the web page with php/sql?

each picture will have 3 select buttons (low price, med price, high price); best way to handle?

also, when a user clicks on a picture to see the big picture with additional information (the long description), how is this trapped?

thxs!
Reply With Quote
  #7 (permalink)  
Old 11-08-04, 04:21 PM
FiRe FiRe is offline
Code Guru
 
Join Date: Oct 2004
Location: UK
Posts: 801
Thanks: 0
Thanked 0 Times in 0 Posts
__________________
Alexa Share <-- Trade virtual shares in websites with this online game.

codR.us <-- Submit and vote for your favorite code snippets with codR.us.

XEWeb.net <-- The ultimate PHP resource network.
Reply With Quote
  #8 (permalink)  
Old 11-08-04, 10:02 PM
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
OScommerce is the best.
www.oscommerce.com
__________________
"Duo seguere aut de via decede" ...
Reply With Quote
  #9 (permalink)  
Old 11-09-04, 03:52 AM
moronovich moronovich is offline
Junior Code Guru
 
Join Date: Oct 2004
Posts: 460
Thanks: 0
Thanked 0 Times in 0 Posts
hi all,
you can also have a visit to this open source project:
http://sourceforge.net/projects/oscmall
__________________
just an ignorant noob with moronic solution...
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
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
RESELLER WEB HOSTING - $9.99/MONTH For 4GB HD & 30GB BW! CPanel, PHP, MySQL & MORE! IncognitoNet General Advertisements 0 10-30-04 01:19 PM
Setup of PHPmyadmin + PHP + Mysql jaishalg PHP 3 09-13-04 06:06 PM
PHP, MySQL, WML superman PHP 0 03-04-04 10:46 AM
question about updating a page or database for an, php and mysql updating mikewooten PHP 1 02-12-04 12:11 AM


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