Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
PHP
How to search database using php
How to search database using php
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
2
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
1
2
template
Next
ehpratah
New Member
Join Date:
Mar 2012
Posts:
35
#16
May 14 '12, 12:56 PM
what can you say bout it? on my own understanding the error is this part '%{$table}%' and '%{$search}%'
Comment
Post
Cancel
ehpratah
New Member
Join Date:
Mar 2012
Posts:
35
#17
May 14 '12, 01:02 PM
but table name must be dynamic and must cope with what the user choose in the form that he submit..or you have a better idea to do it..
Comment
Post
Cancel
ehpratah
New Member
Join Date:
Mar 2012
Posts:
35
#18
May 14 '12, 01:16 PM
hey dude i found an alternative i got it working but maybe its a bad coding i dunno..i use if statement
Comment
Post
Cancel
Rabbit
Recognized Expert
MVP
Join Date:
Jan 2007
Posts:
12517
#19
May 14 '12, 03:23 PM
The fact that the user needs to choose the table dynamically indicates that your data is in a non-normalized format and you should really think about normalizing it so you don't have to deal with choosing a table.
Comment
Post
Cancel
Previous
1
2
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment