🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #230957

Re: odwrotność mysqli_real_escape_string()

#230957
From: Lemat
Date: Mon, 06 Apr 2015 12:45
21 lines
1302 bytes
platformowe głupki wrote:

> istnieje jakaś funkcja odwrotna do mysqli_real_escape_string()
> ?

string wstawiony do bazy za pomocą mysqli_real_escape_string() a potem 
wyjęty z bazy nie wymaga funkcji odwrotnej.

 
> albo jak sobie poradzić ze wstawianiem znaków \ w _POST w php?
> 
> bez edycji konfiguracji php oczywiście...


$gpc=get_magic_quotes_gpc ();
if ($gpc)
	$zmienna=stripslashes($_POST['zmienna']);

-- 
Pozdrawiam
Lemat
Technical Details
Message-ID: <55227fcd$0$8386$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <mfpknp$se8$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: Lemat <#@lemat.priv.pl>
Organization: lemat.priv.pl
Date: Mon, 06 Apr 2015 14:45:12 +0200
User-Agent: KNode/4.14.1
Subject: Re: odwrotność mysqli_real_escape_string()
Newsgroups: pl.comp.lang.php
References: <mfpknp$se8$1@node1.news.atman.pl>
MIME-Version: 1.0
Lines: 21
Message-ID: <55227fcd$0$8386$65785112@news.neostrada.pl>
NNTP-Posting-Host: 79.189.200.118
X-Trace: 1428324301 unt-rea-b-01.news.neostrada.pl 8386 79.189.200.118:33431
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit