select name where state like '%s', $post['state']
mysql_query(sprintf("select name where state like '%s', $post['state'] "));
probably better if you take the commas out of your state tables
wa fl az mi
instead of
wa, fl, az, mi,
many schema give commas a meaning, and cannot be sure where the data will be interpreted and parsed
the space character is a sufficient divider
%s , $post['state'] could be written as
$post['state']
replaceable parameters that I need to know which ones are numeric / text / blob to debug, sql %s is literal text
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
most do not want to be told[INDENT] rtfm[/INDENT]its easier for me its just another line of code, that I have in memory, references I have to waste my time looking up
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
Then such people aren't worthy of telling anything at all. Because this community attempts to nurture an environment that makes people learn while helping them. Giving away readymade answers just because someone would not like you telling him "go-read-the-manual", isn't the right approach.
And if you feel that your time is wasted, siting people references from which they can learn, then isn't not posting a good idea to consider ?
@verruckt24 :hi..if anybody post new thread in forums means, its urgent to them...i think pointing to some referance manual is waste of time....Learning depends on their own interest..no body can force them...ok coool....enjoy & learn something by using this forumm..
ahmksssv
Junior Poster in Training
84 posts since Feb 2009
Reputation Points: 11
Solved Threads: 7
Verruckt
the final arbitration of all takes up so much of your time.
It must be difficult to be you.
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
Thank you for posting the examples. I looked at the manual and did not understand it. I like forums where people post their own examples and not just refer to "manuals" because it helps me learn more. Thanks for your help.
Glad it all helped, examples stick in my mind better too
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
Thank you for posting the examples. I looked at the manual and did not understand it. I like forums where people post their own examples and not just refer to "manuals" because it helps me learn more. Thanks for your help.
I noticed, its your first post on Daniweb. Welcome to Daniweb! :)
P.S. Some people will never change. They are always whining.
:icon_rolleyes: Bah! Nevermind.
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356