alpha.tech Posted April 15, 2007 Share Posted April 15, 2007 I have a liitle problem and I would be very gratefull if someone can help me, and give some simple example. I am working on some site ( simple e-commerce ) and I don`t know how tod do the following: I need a simple form to upload name,price and image of a product to a server, or SQL table, and then just to retrieve information on some view.php page from database. What is the problem? I know to create table, to make a SQL connection, to write PHP code for insert, edit, delete data, but I don`t know how to upload IMAGE with those two texts ( name and price ) and then to show that image with name and price on some product.php page. I use Linux hosting! If someone can help me..plesae give me a simple example..thanks! Link to comment https://forums.phpfreaks.com/topic/47084-need-just-simple-example/ Share on other sites More sharing options...
clown[NOR] Posted April 15, 2007 Share Posted April 15, 2007 basicly what you can do... make a field in you table wherer you store the image... for example bmwz8.jpg... then in the same row you have all info... about price and stuff... so basiccly what you need to do now is just this $field = mysql_fetch_assoc($result); $price = $field['price']; $product = $field['product']; $image = $field['image']; then just add those variables to where you want to show it.... so basicly what I'm saying... make a field called image and store the info about the image file in that Link to comment https://forums.phpfreaks.com/topic/47084-need-just-simple-example/#findComment-229652 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.