Re: [PHP-DB] error creating tables

2007-03-03 Thread Haydar TUNA
Hello, I tried to run your SQL query with my private database and there wasn't any problem. You can use primary key like your PHP code because I run your SQL in the mysql command line succesfully. Did you connect root account to your mysql server? If the account is root, there isn't any

[PHP-DB] error creating tables

2007-02-27 Thread aconite
im trying to create a database in a php file.i have MySql 5.0.33 PHP 5.2.1 this is the code i have in the php file $con = mysql_pconnect(127.0.0.1,root,12345); if (!$con) { die('Could not connect: ' . mysql_error()); } if (mysql_query(CREATE DATABASE mydatabase,$con)) { echo