PROBLEM CREATING A TABLE

Manasavi Rajpoot

Total Post:10

Points:70
Posted by  Manasavi Rajpoot
PHP 
PHP
 1497  View(s)
Ratings:
Rate this:
how to create a table in php and syntax of its
  1. Amit Singh

    Post:103

    Points:721
    Re: problem creating a table

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!