SELECT * from tipps
WHERE (name like '%&name%' OR '$name' = '')
AND (stadt = '$stadt' OR '$stadt' = '')
AND (kueche = '$kueche' OR '$kueche' = '')
ORDER by $order ASC LIMIT $start, $limit

-----Original Message-----
From: Chris [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 18 september 2001 13:05
To: MySql
Subject: Re: multiple select


If this is your query, you might have a problem at the first 'AND' :

SELECT * from tipps AND name LIKE '%$name%' AND stadt = '$stadt' AND kueche=
'$kueche' ORDER by $order ASC LIMIT $start, $limit

should be:

SELECT * from tipps WHERE name LIKE '%$name%' AND stadt = '$stadt' AND
kueche= '$kueche' ORDER by $order ASC LIMIT $start, $limit

Sorry if this does not answer your question


----- Original Message -----
From: "Michael Paffrath" <[EMAIL PROTECTED]>
To: "MySql" <[EMAIL PROTECTED]>
Sent: Tuesday, September 18, 2001 12:37
Subject: Re: multiple select


am 18.09.2001 12:30 Uhr schrieb Chris unter [EMAIL PROTECTED]:

> Post your query
SELECT * from tipps AND name LIKE '%$name%' AND stadt = '$stadt' AND kueche
= '$kueche' ORDER by $order ASC LIMIT $start, $limit

Michael Paffrath
fatmedia - agentur für interaktive medien
Schillerstraße 6

50968 Köln

Tel. 0221 - 660 36 63
Fax. 0221 - 276 03 98
http://www.fatmedia.de


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





*******************************************************************

This message may contain information which is confidential and subject to
legal privilege. If you are not the intended recipient, you may not peruse,
use, disseminate, distribute or copy this message. If you have received this
message in error, please notify the sender immediately by email, facsimile
or telephone and return and/or destroy the original message.

*******************************************************************

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to