Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Select where begins with a number


swa66 - 9:17 pm on Oct 14, 2012 (gmt 0)


To get it right: you want to see if there are lines in your table where in a given column there's a value that
a. starts with a number
b. equals a reference

Correct ?

Then why not turn it around: check in your php if the reference starts with a number (leaving SQL alone), and if it does, check in SQL for a line with the value of the reference.

BTW: you can use SELECTs in other SELECTs, but before you go there, try to explain the problem you're trying to solve first.


Thread source:: http://www.webmasterworld.com/php/4504777.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com