PHP error i cannot figure out... [Archive] - ForumsHQ

War Hawk
Posts: 1013
Joined: Thu Mar 07, 2002 6:00 am

Re: PHP error i cannot figure out... [Archive] - ForumsHQ

Post by War Hawk »

dude this code is all messed up.... I recommend starting from something simple.... you went from like step 1 to step 50 in about an hour man...



and why is there a create table in there??? erase that...
Durin
Posts: 295
Joined: Thu Nov 07, 2002 6:00 am

Re: PHP error i cannot figure out... [Archive] - ForumsHQ

Post by Durin »

heh nod, i am noticing this. But hey, i trying learn fast, and yea i moved the create table. You gotta put that into a separate file and make it in the database outside of that ;) Why are there undefineds though?
Reckless

Re: PHP error i cannot figure out... [Archive] - ForumsHQ

Post by Reckless »

whatever happened to boonism's forums?
Durin
Posts: 295
Joined: Thu Nov 07, 2002 6:00 am

Re: PHP error i cannot figure out... [Archive] - ForumsHQ

Post by Durin »

Parse error: parse error, unexpected T_STRING in d:\xitami\webpages\include\user.php on line 65



never mind what files and such, but what do i look for in a T_STRING error, like this? Thanks.
War Hawk
Posts: 1013
Joined: Thu Mar 07, 2002 6:00 am

Re: PHP error i cannot figure out... [Archive] - ForumsHQ

Post by War Hawk »

uhm what DB are you trying to connect to?? don't you have to do something like DB_connect(database_name); ?
War Hawk
Posts: 1013
Joined: Thu Mar 07, 2002 6:00 am

Re: PHP error i cannot figure out... [Archive] - ForumsHQ

Post by War Hawk »

// create connection

$connection = mysql_connect($host,$db_username,$db_password)

or die("Couldn't make connection.");



// GLOBAL SQL DATA!!

$sql = "SELECT `users`.`username`FROM `users` ";



$sql_result = mysql_query($sql,$connection)

or die("Couldn't new execute query.");



this is what I do.... tada!
Post Reply

Return to “General Computing Talk”