Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: MYSQL while function

by greywolf (Priest)
on Sep 07, 2002 at 03:04 UTC ( #195827=note: print w/ replies, xml ) Need Help??


in reply to MYSQL while function

You might want to try bracketing your where clauses to ensure you are testing for the conditions you really want. It never hurts to be explicit with your logic. For example:

WHERE category = '$id' AND (description LIKE '%$search%' OR itemid LIK +E '%$search%' OR longdescription LIKE '%$search%') is different from WHERE (category = '$id' AND description LIKE '%$search%') OR itemid LI +KE '%$search%' OR longdescription LIKE '%$search%'
That being said, you really should try to implement some of the suggestions from other monks if you are going to post more than 1 question on essentially the same problem.

mr greywolf


Comment on Re: MYSQL while function
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://195827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2015-03-04 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (101 votes), past polls