note 50512 added to function.pg-escape-string

From: Date: Wed, 02 Mar 2005 11:34:57 +0000
Subject: note 50512 added to function.pg-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-85773@lists.php.net to get a copy of this message
IMO the stripslashes in this case is not very usefull. Because pg_escape_string change ' into '' (double ' - not "). I use in add to database this: pg_escape_string(stripslashes($_GET['var'])) and is in 100% safe (i hope). If I use addslashes in this case that well be lost space in database (\''' - this is 3 bytes) ps. sorry for my english:) ---- Manual Page -- http://www.php.net/manual/en/function.pg-escape-string.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50512 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50512&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50512&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50512&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50512&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50512&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50512&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85773) next »