Ne zapisyvaetsja v bazu ' - Visavi.net
https://visavi.net/
RSS - Visavi.nethttps://visavi.net/assets/img/images/logo_small.pngRSS - Visavi.net
https://visavi.net/
[email protected] (admin)[email protected] (admin)Wed, 27 Nov 2024 20:47:48 +0300Vsjo jastno. V poste 3 snachalo stavitsja "\" potom obrabatyvaestsja, nado naoborot. Tema ne aktual'na.
https://visavi.net/topics/1110/46954
Ne zapisyvaetsja v bazu ' АндрейWed, 30 Sep 2009 09:25:02 +0400Сообщенияhttps://visavi.net/topics/1110/46954Esli sdelat' tak: <br>
$text=str_replace("'",'"',$text); to zapisyvaetsja, no ja nehochu zamenjat'.
https://visavi.net/topics/1110/46948
Ne zapisyvaetsja v bazu ' АндрейWed, 30 Sep 2009 09:05:54 +0400Сообщенияhttps://visavi.net/topics/1110/469482, u menja sejchas tak:<br>
$text=str_replace("'","\'",mysql_real_escape_string(htmlspecialchars(stripslashes($_POST['text']))));<br>
i ne zapisyvaetsja esli v tekste est' simvol ', esli net to zapisyvaestja.
https://visavi.net/topics/1110/46947
Ne zapisyvaetsja v bazu ' АндрейWed, 30 Sep 2009 08:59:15 +0400Сообщенияhttps://visavi.net/topics/1110/46947$text = htmlspecialchars(stripslashes($text));
https://visavi.net/topics/1110/46944
Ne zapisyvaetsja v bazu ' УдаленныйWed, 30 Sep 2009 08:52:18 +0400Сообщенияhttps://visavi.net/topics/1110/46944Kak zapisat' specsimvol >>'<< v bazu?<br>
Proboval tak:<br>
$text=str_replace("'","\'",$text); i cherez htmlspecialchars() ne pomogaet.<br>
Mozhet est' u simvola ' spec kod tipa ">"?
https://visavi.net/topics/1110/46943
Ne zapisyvaetsja v bazu ' АндрейWed, 30 Sep 2009 08:47:29 +0400Сообщенияhttps://visavi.net/topics/1110/46943