Customer id

From: Date: Sat, 01 Mar 2003 00:51:55 +0000
Subject: Customer id
Groups: php.db 
Request: Send a blank email to php-db+get-26016@lists.php.net to get a copy of this message
How do I write a script that will automatically create an ID in the database. Here is a sample -------------------------- orderform.shtml ---------------------------------------- <form action="order.php" method="post"> First Name<input type="text" name="fname"><br> Last Name<input type="text" name="lname"> <input type="submit" name="submit" value="enter"> <input type="reset" name="Clear"> ------------------Order.php ---------------------------------------------------------- <?PHP include('dbconnect.php'); if ($submit == "enter") { $query = "insert into orders
                 (fname,lname) values
                 ('$fname','$lname')" ;
mysql_query($query) or
                 die (mysql_error());
} ?> Any Ideas? Thanks, Dan

« previous php.db (#26016) next »