euphoric Posted October 23, 2009 Report Share Posted October 23, 2009 Ir input type text, pectam dati tiek nodoti datu bazei. Kā labāk aizliegt " ' " simbolu ievadi formā ? Quote Link to comment Share on other sites More sharing options...
ohmygod Posted October 23, 2009 Report Share Posted October 23, 2009 viņus nevajag aizliegt, vajag esceipot. http://lv.php.net/manual/en/function.mysql-real-escape-string.php Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted October 23, 2009 Report Share Posted October 23, 2009 PHP pusē: if(strpos($lauks,"'") === false){ neslikts lauks } else { slikts lauks } Quote Link to comment Share on other sites More sharing options...
euphoric Posted October 23, 2009 Author Report Share Posted October 23, 2009 Ņemšu vērā, paldies ;) 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.