Re: 'Code Snippets' you couldn't live without
| From: | Klaus Reimer | Date: | Wed, 03 Nov 2004 21:42:19 +0000 |
| Subject: | Re: 'Code Snippets' you couldn't live without | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201088@lists.php.net to get a copy of this message | ||
Pablo Gosse wrote:
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
extra with the results to suit your needs, but as for just using asl($val) instead of addslashes($val), well why not just extend the PHP source to make asl() an actual alias to addslashes()?Extending PHP to have "shorthand" functions? Was that irony? I hope so. Having such shorthand functions directly in PHP might bring us this: $n = $_I['n']; $c = mc('localhost'); $d = msd('somedb', $c); $q = mq(spf('SELECT * FROM users WHERE name='%s', asl($n)), $d); while ($r = mfa($q)) vd($r); mfr(q); Is that really what you want? -- Bye, K <http://www.ailis.de/~k/> (FidoNet: 2:240/2188.18) [A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391] (Finger k@ailis.de to get public key)
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc