Advertisement

12.11.2007 at 04:24PM PST, ID: 23017244
[x]
Attachment Details

Why do I get a string err trying to create a database

Asked by evault in PHP for Windows, PHP Scripting Language, PHP and Databases

Tags: PHP, PHP 5.2.5, 5.2.5

I am trying to create a login script and have found this snippet of code (below). Am I supposed to point to a MySQL include or something similar?It gioves me this error when I try to run it:

 Parse error: syntax error, unexpected T_STRING in C:\.....\login.php on line 99

Start Free Trial
1:
2:
3:
4:
5:
6:
CREATE TABLE member (id int NOT NULL auto_increment, username varchar(20) NOT NULL default '',
  password char(32) binary NOT NULL default '',
  cookie char(32) binary NOT NULL default '',
  session char(32) binary NOT NULL default '',
  ip varchar(15) binary NOT NULL default '',
  PRIMARY KEY (id), UNIQUE KEY username (username));
 
Loading Advertisement...
 
[+][-]12.11.2007 at 04:41PM PST, ID: 20454286

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.11.2007 at 04:45PM PST, ID: 20454300

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP for Windows, PHP Scripting Language, PHP and Databases
Tags: PHP, PHP 5.2.5, 5.2.5
Sign Up Now!
Solution Provided By: yodercm
Participating Experts: 4
Solution Grade: B
 
 
[+][-]12.11.2007 at 04:57PM PST, ID: 20454335

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.11.2007 at 10:25PM PST, ID: 20455455

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.11.2007 at 10:29PM PST, ID: 20455470

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.11.2007 at 10:35PM PST, ID: 20455490

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.12.2007 at 04:07AM PST, ID: 20456485

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.12.2007 at 04:26AM PST, ID: 20456559

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628