[SOLVED] whats is the set of orders to build a database
Posted: Tue Dec 09, 2003 6:07 am
and then a table with its columns
using php and mysql database?
thnaks inadvance
peleg
using php and mysql database?
thnaks inadvance
peleg
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
$link=MYSQL_CONNECT($host,$username,$password) OR DIE("Unable to connect to database")
$query = "CREATE TABLE Browser (
id int(11) NOT NULL auto_increment,
data text NOT NULL,
platform varchar(25) NOT NULL default '',
type varchar(25) NOT NULL default '',
version varchar(25) NOT NULL default '',
PRIMARY KEY (id)
)";
$result=mysql_query($query,$link) or die(mysql_error()."$query");
?>