Re: returning a variable from a class function? plus other probs
| From: | Curt Zirzow | Date: | Sun, 05 Oct 2003 02:29:33 +0000 |
| Subject: | Re: returning a variable from a class function? plus other probs | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165076@lists.php.net to get a copy of this message | ||
* Thus wrote Dan Anderson (dan@mathjunkies.com):
> > Using ' is prefered IIRC, and also escaping all the data before sending
> > it to the database:
>
> Hmmm. Perhaps Emacs isn't converting from Unicode to ASCII properly?
> ::shrugs:: I just know sometimes my queries don't work if I use ' .
I just tested it, mysql_escape_string() escapes both ' and " so
either quotes used to enclose values are fine.
Curt
--
List Stats: http://zirzow.dyndns.org/html/mlists/php_general/
"I used to think I was indecisive, but now I'm not so sure."