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...
PHP error i cannot figure out... [Archive] - ForumsHQ
Re: PHP error i cannot figure out... [Archive] - ForumsHQ
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
whatever happened to boonism's forums?
Re: PHP error i cannot figure out... [Archive] - ForumsHQ
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.
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
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
// 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!
$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!