MySQL Forums
Forum List  »  German

mysql SELECT mit WHERE und LIKE
Posted by: Jürgen Heitmann
Date: February 07, 2012 05:52AM

Ich habe folgende Select Anweisung: Wenn ich nach name suche ist o.k. wenn ich nach id suche kommen alle id´s:

SELECT * FROM buchung WHERE b_id = '$b_id' OR b_name LIKE '%$name%'

hat jemand einen Tipp für mich wo der Fehler ist.

Danke.

Options: ReplyQuote


Subject
Views
Written By
Posted
mysql SELECT mit WHERE und LIKE
2488
February 07, 2012 05:52AM
1797
February 07, 2012 06:04AM
1177
February 07, 2012 07:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.