Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
First I'd like to say thanks to all of the wonderful hints, and suggestions. This forum has been a huge help in attempting to learn PHP.
And in that spirit, here's another question
Is there a standard, almost pre-built user-login system around? I'm toying with the idea of this.. And was thinking that's is so common, and probably mostly standard.. That there's probably something already written, to be reused by the masses...
you might try hotscripts. But really, creating a log in system is not a very challenging thing to do and therefore I think most people simply write their own.
I'd suggest you start writing your own and if you run into some issues, hit us up here and we can help you out.
mysql_connect("localhost","username","password")
or die(mysql_error());
mysql_select_db("somedatabase")
or die(mysql_error());
$result = mysql_query("select * from users where username = '".mysql_real_escape_string($_POST['username'])."' and password = '".mysql_real_escape_string(md5($_POST['password']))."'")
or die(mysql_error());
if($result = mysql_fetch_assoc($result))
// valid user...do stuff
else
// log in failed do something else