Soldato
- Joined
- 10 Apr 2006
- Posts
- 7,920
- Location
- North West
I need to create a website using php and a mysql database with 1 table.
(its a sweet shop)
The table has already been created for me and populated with data.
I have to create a shopping cart for the website which can add products from the table into it. Im assuming this involves session as I am new to php so I may be wrong!
But on the main page of the site i wanted to create a "sweet of the day" which would be a random selection from the database of the sweets name and image, which are under the columns sName and sImgName.
I've seen someone make a random function on these forums that picks a different sig every time the page is loaded, will that do the job or is it completely different as every time i will have to be querying the database?
Any help will be much appreciated, and anyone that has some spare time over the next 48hours with a good amount of php/mysql knowledge if they could add me to MSN i'd be their friend forever
(its a sweet shop)
The table has already been created for me and populated with data.
I have to create a shopping cart for the website which can add products from the table into it. Im assuming this involves session as I am new to php so I may be wrong!
But on the main page of the site i wanted to create a "sweet of the day" which would be a random selection from the database of the sweets name and image, which are under the columns sName and sImgName.
I've seen someone make a random function on these forums that picks a different sig every time the page is loaded, will that do the job or is it completely different as every time i will have to be querying the database?
Any help will be much appreciated, and anyone that has some spare time over the next 48hours with a good amount of php/mysql knowledge if they could add me to MSN i'd be their friend forever



