phpbar.de logo

Mailinglisten-Archive

[php] Parse error (order by?)

[php] Parse error (order by?)

rainer kraft rainer.kraft_(at)_idgruppe.com
Wed, 23 Jun 1999 14:26:27 +0200


Franz-Josef Loebbers wrote:
> #1 <? mysql_connect("localhost");
> #2 $rs= mysql("PC","SELECT * FROM Computer WHERE $Suchfeld LIKE
> %$Suchwort% order by Bestellnummer"); >

ich haette immer noch den vorschlag, das sql-statement vorher
zusammenzusetzen:
<?
 mysql_connect("localhost");
 $sqlString = "SELECT * FROM Computer WHERE ".$Suchfeld." LIKE %."$Suchwort."% order by Bestellnummer";
 $rs= mysql("PC", $sqlString);
?>

-- rainer

--------------------------------------------------
rainer kraft              ... technical supervisor
*** i-d media ag ***      ... www.idgruppe.com
tel.: ++49 7365 9605 205  ... int.: 205
rainer.kraft_(at)_idgruppe.com ... ICQ#: 3983270
--------------------------------------------------


php::bar PHP Wiki   -   Listenarchive