[PHP-DB] Create database phpHoo\p\g

2002-09-28 Thread Russell Griechen
I was looking at PhpHoo 'yahoo-like directory' What is the \p\g appended to the code mean? I was thinking about using this...just don't understand how to implement the appendages. create database phpHoo\p\g use phpHoo\p\g create table Categories ( CatID bigint(21) NOT NULL auto_increment,

[PHP-DB] Create database

2002-08-27 Thread Russell Griechen
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

Re: [PHP-DB] Create database

2002-08-27 Thread Adam Williams
?php $conn = mysql_connect(localhost,username,password) or die(Couldn't connect to mysql); $query = (CREATE DATABASE db_name); if (mysql_query($query)) { echo pThe database was created successfully/p; } else { echo pThe database was not created .mysql_error()./p; } ? If it still gives you the