zirgs Posted May 23, 2006 Report Share Posted May 23, 2006 (edited) Nu lieta tada ka uztaisiju formu ar kuras palidzibu ievada sql info ... bet viss buutu baigi jauki ja nebuutu tada problema ka neatljauj postot " ' " peedinjas parastaas atljauj a shito ne... kads nezin kas pa skrobi ? MySQL - 5.0.19 PHP 5.1.4 Edited May 23, 2006 by zirgs Link to comment Share on other sites More sharing options...
Vebers Posted May 23, 2006 Report Share Posted May 23, 2006 http://lv.php.net/htmlspecialchars Link to comment Share on other sites More sharing options...
Kristabs Posted May 23, 2006 Report Share Posted May 23, 2006 http://lv.php.net/addslashes Link to comment Share on other sites More sharing options...
bubu Posted May 23, 2006 Report Share Posted May 23, 2006 Kā izpaužas neļaušana postot pēdiņas? Link to comment Share on other sites More sharing options...
andrisp Posted May 23, 2006 Report Share Posted May 23, 2006 Visticamāk, ka errors metās. Es daru šādi: function smartQ($value) { if (get_magic_quotes_gpc()) { $value = stripslashes($value); } if (!is_numeric($value)) { $value = mysql_real_escape_string($value); } return $value; } šo fju var izsaukt tikai pēc piekonektēšanās db. parasti es izlaižu visu POST masīvu cauri šai fjai ar foreach cikla palīdzību. Link to comment Share on other sites More sharing options...
Recommended Posts