Re: 'Code Snippets' you couldn't live without

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pablo Gosse wrote:
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@xxxxxxxx to get public key)

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux