| | |
Search from multiple tables ??
Thread Solved |
•
•
Join Date: May 2008
Posts: 90
Reputation:
Solved Threads: 0
PHP Syntax (Toggle Plain Text)
$q = "show tables";
shall i write the table name thr?I have 26 tables...All of the at a time shall i write?is this the way i must write?
PHP Syntax (Toggle Plain Text)
$q= " show a,b,c....";
No. The code that I have given will search for all the tables in the database. (make sure you have only those tables in the database which you want to search). And what I mean by print your query is, echo $searchtables;
Tell us what it prints on the screen.
Tell us what it prints on the screen.
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: May 2008
Posts: 90
Reputation:
Solved Threads: 0
Error Again...but changed a little than before
PHP Syntax (Toggle Plain Text)
select * from a where col1 like '%%' Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\exphp\medwits\search.php on line 14 select * from b where col1 like '%%' Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\exphp\medwits\search.php on line 14 . . . select * from z where col1 like '%%' Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\exphp\medwits\search.php on line 14
Last edited by Suhacini; May 9th, 2008 at 6:41 am.
•
•
Join Date: May 2008
Posts: 90
Reputation:
Solved Threads: 0
I have changed the col name...
the i got the result like this
the i got the result like this
PHP Syntax (Toggle Plain Text)
select * from a where MedName like '%searchresult%'select * from b where MedName like '%searchresult%'select * from c where MedName like '%searchresult%'select * from d where MedName like '%searchresult%'select * from e where MedName like '%searchresult%'select * from f where MedName like '%searchresult%'select * from g where MedName like '%searchresult%'select * from h where MedName like '%searchresult%'select * from i where MedName like '%searchresult%'select * from j where MedName like '%searchresult%'select * from k where MedName like '%searchresult%'select * from l where MedName like '%searchresult%'select * from m where MedName like '%searchresult%'select * from n where MedName like '%searchresult%'select * from o where MedName like '%searchresult%'select * from p where MedName like '%searchresult%'select * from q where MedName like '%searchresult%'select * from r where MedName like '%searchresult%'select * from s where MedName like '%searchresult%'select * from t where MedName like '%searchresult%'select * from u where MedName like '%searchresult%'select * from v where MedName like '%searchresult%'select * from w where MedName like '%searchresult%'select * from x where MedName like '%searchresult%'select * from y where MedName like '%searchresult%'select * from z where MedName like '%searchresult%'
•
•
•
•
PHP Syntax (Toggle Plain Text)
$q = "show tables";
I have 26 tables...shall i write all the names at once
PHP Syntax (Toggle Plain Text)
$q="show a,b,c...z";
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
![]() |
Similar Threads
- Searching Multiple tables... Please help me!!!!! (PHP)
- Query multiple tables with duplicate data (MySQL)
- Searching for a record in multiple tables (VB.NET)
- URGENT: Implementing search with multiple dissimilar MySQL tables (MySQL)
- Query multiple tables? (MySQL)
- updating 2 HTML tables on one PHP page (PHP)
Other Threads in the PHP Forum
- Previous Thread: question of the day
- Next Thread: Overloading PHP Functions
Views: 5910 | Replies: 34
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array auto box buttons cakephp check checkbox class cms code combobox database date directory display download dropdown drupal dynamic echo email error file files folder form forms functions header hosting href htaccess html image include insert integration ip java javascript joomla jquery limit link list login loop mail menu methods mlm mod_rewrite multiple mysql onclick order parse password paypal pdf php post problem query radio random recursion redirect regex remote rewrite rows script search select server session sort source sql storage string table update upload url user validation variable video web website wordpress xml zend






