#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    3
    Rep Power
    0
    Because my site is virtual hosted, I cannot telnet.
    How can I create a database with php?
    I find enough examples for creating tables, but not for a database.

    Nans
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    The same way.

    $result=mysql_query("create database dbname");

    That said, you probably don't have permission to create a database.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    3
    Rep Power
    0
    thanks, I will try it out and keep you informed...

    regards from Belgium

Similar Threads

  1. Writing dates to MySQL database with PHP
    By Dangerous Brian in forum PHP Development
    Replies: 4
    Last Post: September 22nd, 2003, 04:43 PM
  2. create a new php page from within another php page
    By raviram80 in forum PHP Development
    Replies: 1
    Last Post: August 8th, 2003, 02:49 PM
  3. can php create new folders on webserver as needed?
    By smakz in forum PHP Development
    Replies: 8
    Last Post: March 27th, 2003, 05:57 PM
  4. Database manipulation with php
    By donclick in forum PHP Development
    Replies: 2
    Last Post: February 10th, 2003, 10:17 AM
  5. PHP on Apache
    By YtsE in forum PHP Development
    Replies: 12
    Last Post: March 25th, 2002, 11:12 PM

IMN logo majestic logo threadwatch logo seochat tools logo