Newbie here,
With PhpMyAdmin, What is the syntax for create database?

I have:

$link = mysql_pconnect("hostname", "username", "password")
        or exit("Could not connect");

    if (mysql_create_db("Sportsmen")) {
        print ("Database created successfully\n");
    } else {
        printf ("Error creating database: %s\n", mysql_error ());
MySQL said:

You have an error in your SQL syntax near '$link =
mysql_pconnect(\"\", \"russgri\", \"sportsme\")
        or' at line 1

Russell Griechen

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to