Agw2012
04-04-2007, 03:56 PM
i have a user system on my site excet i cant login on it i have used techtuts guides to making a user system. it dont work when i try to login it comes up with
<?
ob_start(); // allows you to use cookies
$conn = mysql_connect("sql06.freemysql.net ","","");
mysql_select_db(adam) or die(mysql_error());
//fill in the above lines where there are capital letters.
$logged = MYSQL_QUERY("SELECT * from users WHERE id='$_COOKIE[id]'");
$logged = mysql_fetch_array($logged);
//the above lines get the user's information from the database.
alert ('$logged[alert]') "); //send it mysql_query("UPDATE `users` SET `alert` = 'NONE' WHERE `username` = '$logged[username]'"); //then delete alert } }$free = '80';> ?>
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
can anyone help.
the person that does manage to help get my user system working will get admin rites FREE
Edited by Lµke (Forum Moderator): Thread Moved From Website Designing. Please post in the correct section next time, Thanks :).
<?
ob_start(); // allows you to use cookies
$conn = mysql_connect("sql06.freemysql.net ","","");
mysql_select_db(adam) or die(mysql_error());
//fill in the above lines where there are capital letters.
$logged = MYSQL_QUERY("SELECT * from users WHERE id='$_COOKIE[id]'");
$logged = mysql_fetch_array($logged);
//the above lines get the user's information from the database.
alert ('$logged[alert]') "); //send it mysql_query("UPDATE `users` SET `alert` = 'NONE' WHERE `username` = '$logged[username]'"); //then delete alert } }$free = '80';> ?>
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
can anyone help.
the person that does manage to help get my user system working will get admin rites FREE
Edited by Lµke (Forum Moderator): Thread Moved From Website Designing. Please post in the correct section next time, Thanks :).