false Posted December 13, 2009 Report Share Posted December 13, 2009 Kods $niks = mysql_real_escape_string(md5($_POST['niks'])); $pw = mysql_real_escape_string($_POST['pw']); $mem_id = mysql_real_escape_string($id); $nauda = mysql_real_escape_string("50"); mysql_query("INSERT INTO game_nicks(mem_id, niks, parole, nauda, kad, termins) VALUES('$mem_id', '$niks', '$pw', '$nauda', NOW(), DATE_ADD(NOW(), INTERVAL 30 DAY)") or die(mysql_error()); errors You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Kas nepareizs insertā? Quote Link to comment Share on other sites More sharing options...
Val Posted December 13, 2009 Report Share Posted December 13, 2009 Kāpēc 50 ir pēdiņās? Quote Link to comment Share on other sites More sharing options...
cliche Posted December 13, 2009 Report Share Posted December 13, 2009 nav vienas iekavas beigās INSERT INTO game_nicks(mem_id, niks, parole, nauda, kad, termins) VALUES('$mem_id', '$niks', '$pw', '$nauda', NOW(), DATE_ADD(NOW(), INTERVAL 30 DAY)); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.