Page 2 of 2
Re: PHP error i cannot figure out... [Archive] - ForumsHQ
Posted: Fri Jan 10, 2003 5:55 pm
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...
Re: PHP error i cannot figure out... [Archive] - ForumsHQ
Posted: Fri Jan 10, 2003 5:56 pm
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?
Re: PHP error i cannot figure out... [Archive] - ForumsHQ
Posted: Fri Jan 10, 2003 6:07 pm
by Reckless
whatever happened to boonism's forums?
Re: PHP error i cannot figure out... [Archive] - ForumsHQ
Posted: Fri Jan 10, 2003 6:08 pm
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.
Re: PHP error i cannot figure out... [Archive] - ForumsHQ
Posted: Fri Jan 10, 2003 7:29 pm
by War Hawk
uhm what DB are you trying to connect to?? don't you have to do something like DB_connect(database_name); ?
Re: PHP error i cannot figure out... [Archive] - ForumsHQ
Posted: Fri Jan 10, 2003 7:35 pm
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!