Welcome Guest, Not a member yet? Register   Sign In
or_Like Question
#5

[eluser]DanTheMan[/eluser]
The above outputs the following code when $match = new;
Code:
SELECT * FROM (`customer`) WHERE `bb_id` = '28' AND `fname` LIKE '%new%' OR `lname` LIKE '%new%' OR `email` LIKE '%new%' LIMIT 10

The intended output would be that it displays only where the bb_id is equal to 28. However, the real output will display all the records in the database with any bb_id that matches new.

Thanks,
Dan


Messages In This Thread
or_Like Question - by El Forum - 04-16-2011, 06:51 AM
or_Like Question - by El Forum - 04-16-2011, 08:03 AM
or_Like Question - by El Forum - 04-16-2011, 08:11 AM
or_Like Question - by El Forum - 04-16-2011, 08:18 AM
or_Like Question - by El Forum - 04-16-2011, 08:22 AM
or_Like Question - by El Forum - 04-16-2011, 09:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB