daviskrex Posted June 17, 2007 Report Share Posted June 17, 2007 taisīju reg webu wowam kr4 viss iet, bet neraksta ierakstu mysql. <?php if (!get_magic_quotes_gpc()) { $logins = addslashes($_POST['user']); $parole = addslashes($_POST['pass']); $emails = $_POST['email']; } else { $logins = $_POST['logins']; $Parole = $_POST['parole']; $emails = $_POST['emails']; } $sql = mysql_connect("127.0.0.1","root","parole"); if (!$sql){ die('Could not connect: ' . mysql_error()); header ("location: error.php"); exit;} mysql_select_db("realmd", $sql); $q = ("INSERT INTO account ('username','password','gmlevel','sessionkey','s','v','email','joindate','banned','last_ip','failed_logins','locked','last_login','online') VALUES ('$logins','$parole','0','$emails','0','0','NOW()','0','127.0.0.1','0','0','2000-01-01 )"); $r = mysql_query($q); if (!$q) {header ('location: error.php');} else {header("location: pass.php"); exit;} mysql_close($sql) ?> Kāds var pateikt kur proglema? Link to comment Share on other sites More sharing options...
_Yu-Gi-Oh__ Posted June 17, 2007 Report Share Posted June 17, 2007 (edited) kāds tev errors izlec? EDITED: XD lol sql = mysql_connect("127.0.0.1","root","parole"); sql = mysql_connect("localhost","tava mysql lietotājvārds","tava mysql parole"); Edited June 17, 2007 by _Yu-Gi-Oh__ Link to comment Share on other sites More sharing options...
Kavacky Posted June 18, 2007 Report Share Posted June 18, 2007 Hmm... ('username','password','gmlevel','sessionkey','s','v','email','joindate','banned','last_ip','failed_logins','locked','last_login','online') VALUES ('$logins','$parole','0','$emails','0','0','NOW()','0','127.0.0.1','0','0','2000-01-01 ) Paskaties, kur neesi aizvēris pēdiņas ( ' ). Un paskaiti, cik tev norādītie lauki, bet cik padots pie VALUES. Link to comment Share on other sites More sharing options...
daviskrex Posted June 18, 2007 Author Report Share Posted June 18, 2007 yugioh, tur jau tā lieta ka erroru nav! Link to comment Share on other sites More sharing options...
Kavacky Posted June 18, 2007 Report Share Posted June 18, 2007 Protams, ka tur ir. error_reporting(E_ALL); Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now