Jump to content

Picking Random Products from Mysql Database PHP code?


exl08

Recommended Posts

I have a website that uses a mysql database for its shopping cart, what i am wanting to do is attach a script to the front page that pulls the name, image and price of a product from mysql database and also will have do it randomly so every time you visit it will be different. Only prob is i have tried searching the net for a script to modify but cannot find one that does what i want it to do.

 

Im pretty new to php so the more you can provide the best here are the details you may need.

 

the table name is called mod_product and the fields i want to use are product_img and product_name product_price so it shows in that order but in the database they are in a different order if that matters.

 

thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.