Results 1 to 1 of 1

Thread: How To Create a Table using PHP?

  1. #1
    Banned
    Join Date
    Jul 2015
    Posts
    161

    How To Create a Table using PHP?

    Hello to all folks,

    How To Create a Table using PHP? here is best way to create

    <?php
    include "mysql_connection.php";
    $sql = "CREATE TABLE ggl_links ("
    . " id INTEGER NOT NULL"
    . ", url VARCHAR(80) NOT NULL"
    . ", notes VARCHAR(1024)"
    . ", counts INTEGER"
    . ", time TIMESTAMP DEFAULT sysdate()"
    . ")";
    if (mysql_query($sql, $con)) {
    print("Table ggl_links created.n");
    } else {
    print("Table creation failed.n");
    }
    mysql_close($con);
    ?>
    Remember that mysql_query() returns TRUE/FALSE on CREATE statements. If you run this script, you will get something like this


    http://aroradentistindelhi.in"]Best Orthodontist in Delhi[/URL]
    Last edited by Kiran674; 03-28-2016 at 06:04 AM.

Similar Threads

  1. Replies: 0
    Last Post: 04-20-2014, 02:50 PM
  2. Replies: 0
    Last Post: 03-29-2014, 05:40 PM
  3. Replies: 0
    Last Post: 10-14-2013, 06:50 PM
  4. Replies: 0
    Last Post: 10-06-2013, 06:11 PM
  5. Replies: 0
    Last Post: 09-07-2013, 07:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •