homers Posted October 24, 2009 Report Share Posted October 24, 2009 Kods: http://paste.php.lv/44e30c8f73416c7ae67aba04354dffdd Un kāpēc viņš neko negrib likt datubāzē? Quote Link to comment Share on other sites More sharing options...
Val Posted October 24, 2009 Report Share Posted October 24, 2009 kas ir viņš? http://lv.php.net/manual/en/function.mysql-error.php Quote Link to comment Share on other sites More sharing options...
homers Posted October 24, 2009 Author Report Share Posted October 24, 2009 Noņemot pediņas tas pats.. Quote Link to comment Share on other sites More sharing options...
briedis Posted October 24, 2009 Report Share Posted October 24, 2009 (edited) un kāds ir mysql_error vērtība beigās?? mysql_query("INSERT INTO lietotaaji (vaards,uzvaards,epasts,parole,date) VALUES ('$vards','$uzvards','$epasts','$parole','$date')"); Un kāpēc nebija pēdiņas?? Edited October 24, 2009 by briedis Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted October 24, 2009 Report Share Posted October 24, 2009 (edited) Ko dara quote_smart (eskeipo un ieliek pēdiņās?)? Lai nu kā $date nemaz nav apstrādāts ar to f-ju, tā kā pēdiņām tur vajadzētu būt. Lai nu kā vienmēr var izmantot tādu lietu kā: mysql_query("INSERT INTO lietotaaji (vaards,uzvaards,epasts,parole,date) VALUES ($vards,$uzvards,$epasts,$parole,'$date')") or die(mysql_error()); un ja būs kļūda kvērijā, tad par to paziņos. Vēl vari izvadīt kvērija stringu, lai redzētu vai tiešām tie mainīgie ir pēdiņās un ir pareizi eskeipoti. Edited October 24, 2009 by rATRIJS 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.