Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HELP! I can't even create a table!

0 views
Skip to first unread message

Down Under Dan

unread,
Nov 8, 2001, 5:51:22 AM11/8/01
to
<NEWBIE>
Hi all!

I keep getting a parse error when I try to CREATE a TABLE. I am using mySQL
run on a LINUX box. The error is in the line about CREATE TABLE.

I just can't see what I am doing wrong - do you have a hint?

Here is the code:

#Opening Database link
$link = mysql_connect ("localhost", "dan", "secret")
or die ("Could not connect to Database.");
$result = mysql_list_tables ("dansdatabase");


# --------------------------------------------------------
#
# 'users'
#

CREATE TABLE users (
Username longtext NOT NULL,
Password longtext NOT NULL,
AccessLevel longtext NOT NULL,
IP longtext NOT NULL
);

#
# 'users'
#

INSERT INTO users VALUES( 'Franz', 'dog', '1', '');
INSERT INTO users VALUES( 'Esther', 'cat', '2', '');
INSERT INTO users VALUES( 'Dan', 'cow', '3', '');

Down Under Dan

unread,
Nov 8, 2001, 6:16:58 AM11/8/01
to
SORRY!

I thought that I was posting to the php newsgroup.


"Down Under Dan" <pola...@hotmail.com> skrev i en meddelelse
news:3bea6291$0$210$edfa...@dspool01.news.tele.dk...

0 new messages