Home > DeveloperSection > Forums > problem creating a table
Manasavi Rajpoot
Manasavi Rajpoot

Total Post:10

Points:70
Posted on    December-20-2010 1:18 AM

 PHP PHP 
Ratings:


 1 Reply(s)
 1240  View(s)
Rate this:
how to create a table in php and syntax of its


Amit Singh

Total Post:103

Points:721
Posted on    December-24-2010 9:45 AM

Creating table in php
by using syntax:

mysql_select_db("my_db", $con);//Select the Database
$sql = "CREATE TABLE Persons   //Create the Table
(
FirstName varchar(15),
LastName varchar(15),
Age int
)";

// Execute query
mysql_query($sql,$con);


Don't want to miss updates? Please click the below button!

Follow MindStick