PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi all, i'm new to PHP and i don't know if i can ask questions here or not
but i have a little store
i want in the databse to store the avilable amount of a product, and list it in a <select> statemnet, when the user choose from the select list , the number is stored in the databse so that i can retrieve it later.
i want this process to repeat for all the products i have
i started a code , but i couldn't know how to store the selection that the user choose
Hi all, i'm new to PHP and i don't know if i can ask questions here or not
but i have a little store
i want in the databse to store the avilable amount of a product, and list it in a <select> statemnet, when the user choose from the select list , the number is stored in the databse so that i can retrieve it later.
i want this process to repeat for all the products i have
i started a code , but i couldn't know how to store the selection that the user choose
after that when i click submit i want a page that prints out for every product the amount that the user choose + the price and the total price
i hope you can help me
Your code looks fine, is it giving you an error?
$choice does not seem to be defined anywhere but that should probably be the product ID or something. Once you get that just go back into the database and extract it based on those ID's and the quanity of each product.
BlaineSch wrote:
Your code looks fine, is it giving you an error?
$choice does not seem to be defined anywhere but that should probably be the product ID or something. Once you get that just go back into the database and extract it based on those ID's and the quanity of each product.
thaaaanx for ur help
as i said before im not an expert, i tried the code, nut NOTHING happened
i can't find where is the INSERT statement, nothing inserted in the database for the selection