I have this registration form im creating and was wondering how do i query so that what the user has inputted into the input box will be inserted to the table. I have this so far:
<?php
// Make a MySQL Connection
mysql_connect("localhost", "test", "test1") or die(mysql_error());
mysql_select_db("testdatabase") or die(mysql_error());
// Insert a row of information into the table "registrationdetails"
mysql_query("INSERT INTO registrationdetails
(Username) VALUES("What goes here") ?
**I created the input box on a form in my html page. Now i wanted to know how do i know what to put after VALUES to make it insert the inputted data from the user to the row? is it sumin like "VALUES("editbox.name") ??
*Also how do i know which property it is in bluevoda to name the editbox to make it unique to all the other edit boxes on my registration page so i know which edit box i want to use to insert data to the table?
thanks to any help you can give
<?php
// Make a MySQL Connection
mysql_connect("localhost", "test", "test1") or die(mysql_error());
mysql_select_db("testdatabase") or die(mysql_error());
// Insert a row of information into the table "registrationdetails"
mysql_query("INSERT INTO registrationdetails
(Username) VALUES("What goes here") ?
**I created the input box on a form in my html page. Now i wanted to know how do i know what to put after VALUES to make it insert the inputted data from the user to the row? is it sumin like "VALUES("editbox.name") ??
*Also how do i know which property it is in bluevoda to name the editbox to make it unique to all the other edit boxes on my registration page so i know which edit box i want to use to insert data to the table?
thanks to any help you can give
Comment