phpbar.de logo

Mailinglisten-Archive

[php] Variablenwert aus Link generieren

[php] Variablenwert aus Link generieren

andreas amalesh kempf aka_(at)_bigfoot.de
Tue, 08 Jun 1999 14:42:31 GMT


On Tue, 08 Jun 1999 08:33:53 +0200, Kristian Köhntopp wrote:

>$query = sprintf("select ... from ... where plz like "%s%%",
>                     $plz);

Was ist der vorteil von sprintf()?

Warum nicht so?
$query = "select ... from ... where plz like '$plz%'";

ciao

amalesh
-- 
Keep Agent alive: http://www.living-source.com/agent/
LS at CCC-Camp  : http://www.living-source.com/ccc/
German Goatrance: http://www.goatrance.de
Contact         : ak_(at)_living-source.com ~ icq:963380


php::bar PHP Wiki   -   Listenarchive