[phplib] php / mysql problems From: Ewan McDowall (ewan <email protected>)
Date: 06/28/00

I'm very new to php and mysql and I'm having a few problems.

I keep getting errors:
----------
Warning: 0 is not a MySQL result index in C:\Program Files\Apache
Group\Apache\htdocs/Project/1.php3 on line 26
...
Parse error: parse error in C:\Program Files\Apache
Group\Apache\htdocs/Project/1.php3 on line 68
-----------

(line 68 is my </html> line)

But I do not think it is my .php3 files as I get the same error with
very simple script files. I thought that the problem could lie in the
dump file that I'm using:

CREATE TABLE ongoing (id tinyint(4) DEFAULT '0' NOT NULL AUTO_INCREMENT,
costomer varchar(30), what varchar(100), when varchar(20), emp
varchar(50), PRIMARY KEY (id), UNIQUE id (id));
INSERT INTO ongoing VALUES ('1','aCompany','Fix there stuff','about
now','Him & Her');
INSERT INTO ongoing VALUES ('2','anotherCompany','Backup there
stuff','in a week or two','me');

Can any one see anythig increadably wrong?

Thanks

Ewan

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>