Create Table Example MySQL
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<?php mysql_connect("localhost", "name", "pass") or die(mysql_error()); mysql_select_db("dbname") or die(mysql_error()); mysql_query("CREATE TABLE example( id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id), name VARCHAR(30), age INT)") or die(mysql_error()); ?> |
<?php
mysql_connect("localhost", "name", "pass") or die(mysql_error());
mysql_select_db("dbname") or die(mysql_error());
mysql_query("CREATE TABLE example(
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(id),
name VARCHAR(30),
age INT)")
or die(mysql_error());
?>
MySQL Connect Example Script MySQL Insert Example Script
![[Google]]( http://www.network-content.com/wp-content/plugins/easy-adsense-lite/google-light.gif)