phpbar.de logo

Mailinglisten-Archive

Re: [php] Parse error (order by?)
Archiv Mailingliste php_(at)_infosoc.uni-koeln.de

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

Re: [php] Parse error (order by?)



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
--------------------------------------------------

Home | Main Index | Thread Index

php::bar PHP Wiki   -   Listenarchive