Notice: Use of undefined constant localhost - assumed 'localhost' in /home/vhosts/planez.orgfree.com/inventory.php on line 8
Notice: Undefined index: 1 in /home/vhosts/planez.orgfree.com/inventory.php on line 24
Notice: Undefined index: 2 in /home/vhosts/planez.orgfree.com/inventory.php on line 24
Notice: Undefined index: 3 in /home/vhosts/planez.orgfree.com/inventory.php on line 24
Notice: Undefined index: 4 in /home/vhosts/planez.orgfree.com/inventory.php on line 24
Notice: Undefined index: 5 in /home/vhosts/planez.orgfree.com/inventory.php on line 24
Notice: Undefined index: 6 in /home/vhosts/planez.orgfree.com/inventory.php on line 24
Notice: Undefined index: 7 in /home/vhosts/planez.orgfree.com/inventory.php on line 24
Notice: Undefined index: 8 in /home/vhosts/planez.orgfree.com/inventory.php on line 24
Test this sql query in PHPMYADMIN: INSERT INTO wings (CC1, GB1, Radar1, Runway1, Factory1, NP1, Residence1, PP1, Oil1) VALUES (, , , , , , , );
Error. Could not do SQL query!
This is with your code.
I think the problem is me though.
What i'm trying to do, is imput the data from the form into the database.
Basicly the user filles in the text fields with the numbers he wants. So, he presses 5 in the Command center text field, and 5 in Runways. Then he presses the "Construct" button.
After he pressed Construct, it would imput 5 into CC1, 0 into GB1, 0 into Radar1, and so on.
Any advice please?
<input style="font-size:8pt;" type=submit name=cons value=Construct onClick="Go(1,this.form);">
This is the Construct button. Is there anyway I can hook the PHP up to this, so that it inserts the values from the text fields When the user presses this button?