After talking to numerous friends, I've come to the conclusion my code is insecure... I'm using the following types of queries
$quser = mysql_query("SELECT * FROM login WHERE user='".$_POST['user']."' AND pword='".$_POST['pword']."'");
$updatetime = "UPDATE login SET laston= '".date("m/d/Y H:i")."', lastip= '$hostname' WHERE user = '".$_POST['user']."'";
$add_user = "INSERT INTO login (user, pword, email, regip) VALUES ('".$_POST['user']."', '".$_POST['pword']."', '".$_POST['email']."', '$hostname' )";
How would I secure these? I hear theres a way to use Mysql bugs and completely destroy my tables, if I don't secure the queries correctly...
Also, how would I meta fresh a frame from another frame? And do it every few seconds?