Re: [PHP] incrementing a number from a text file

This is a discussion on Re: [PHP] incrementing a number from a text file within the PHP General forums, part of the PHP Programming Forums category; On Mar 15, 2005, at 11:24 AM, Richard Lynch wrote: > BAD (probably): >>>>> Select ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-17-2005
Kurt Yoder
 
Posts: n/a
Default Re: [PHP] incrementing a number from a text file


On Mar 15, 2005, at 11:24 AM, Richard Lynch wrote:

> BAD (probably):
>>>>> Select blablabla FROM t1,t2,t3
>>>>> WHERE customers LIKE '%$s%'
>>>>> OR name LIKE '%$s%'
>>>>> OR domain LIKE '%$s%'
>>>>> OR email LIKE '%$s%'
>>>>> OR log LIKE '%$s%'
>>>>> AND t1.id = t2.t1_id
>>>>> AND t1.id = t3.t1_id

>
> GOOD (usually):
>>>>> Select blablabla FROM t1,t2,t3
>>>>> WHERE (customers LIKE '%$s%'
>>>>> OR name LIKE '%$s%'
>>>>> OR domain LIKE '%$s%'
>>>>> OR email LIKE '%$s%'
>>>>> OR log LIKE '%$s%')
>>>>> AND t1.id = t2.t1_id
>>>>> AND t1.id = t3.t1_id

>
> Note parentheses added around OR expressions.
>


I see. Thanks for the info.



--

Kurt Yoder
http://yoderhome.com
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0