Jump to content

Nokia N93

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Nokia N93's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. connect to DB through XML i have an image gallery which has XML file that stores static names for the images i want to modify the XML file, so that i can connect to the DATABSE and bring the images from there dynamically how can i do that please ? I would be much appreciate someone can help on this problem.
  2. How do I include PHP codes in an XML file? I have a FLASH Gallery that i want to alter the names of the photo's but i can't do that because i don't know how to include the PHP in the XML file ,, can you help me ?
  3. thank you for your help , i have a form but i didn't write it here I did all exactly what you've mentioned , the problem that i faced is how to remeber the selection "choice" for every row :confused: I couldn't figure out how to save the selection for every row and save it to the database
  4. plllllllllllllllz Any help !!!!!!!! :confused:
  5. thanx for ur reply but i faced a problem that i have more than one select statmenet so when i click Post, nothing happened :confused: I want when i click submit, the selection to be stored in the database I s this difficult or it is easy ?? I think that i didn't explain the problem right
  6. rarebit thnx alot for ur help everything in the code is Okay but i need the way to store the selection of the user in the databse and retrieve it back
  7. PHP_Mysql <select> problem? 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 <?php mysql_connect("localhost"); mysql_select_db("db"); $sql = "SELECT * FROM store"; $rs = mysql_query($sql); while($row = mysql_fetch_array($rs)) { $p = $row[p]; $av = $row[av]; $price = $row[price]; echo "<tr> <td>$p</td> <td><select name=".$choice.">"; for($i=0; $i<=$avilable; $i++) { echo "<option value=".$i." name=".$i.">$i</option>"; } echo "<td >$price</td> </tr>"; } mysql_close(); ?> 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
×
×
  • 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.