Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

wildcard query via PHP

21832Oct 28 2004 — edited Nov 17 2004
need help on query using wildcard ... got sql statement that uses an input variable and then search Oracle thru wildcard "%variable%" like this:

select col1, col2, col3 from table
where col1 like '%$variable%'

what wrong with this sql statement on PHP ... $variable is supposed to be an input variable coming from POST/SUBMIT ... but when going to the url, it automatically query all from table even before entering the value for search ... tia for help!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2004
Added on Oct 28 2004
3 comments
518 views