basic-php-15-createtemp.php / php
<?php //connect to the database - either include a connection variable file //or type the following lines: //Define the temp table query = "CREATE TABLE carttemp( carttemp_hidden INT(10) NOT NULL AUTO_INCREMENT, carttemp_sess CHAR(50) NOT NULL, carttemp_prodnum CHAR(5) NOT NULL, carttemp_quan INT(3) NOT NULL, PRIMARY KEY (carttemp_hidden), KEY(carttemp_sess))"; query) or die(mysql_error()); echo "Temporary cart table created successfully!"; ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.