A lot Information

There are everything from everywhere

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());

?>

,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" extra="">