Hello!
I need some help with tables in MySQL.
I am making a colums of articles in my site.
It has 3 posters that post articles.
I make a little serach page to search for words into articles.
I have the sintax below working, but I need to know what is the syntax
to it select words from several tables. Every table is for a poster
and all tables are in the same DB and have the same fields.
---------------
$searchword="SE LECT * FROM table WHERE comment LIKE
'%$searchstring %'";
---------------
I tried
---------------
$searchword="SE LECT * FROM table, table1, table2 WHERE selected_row
LIKE '%$searchstring %'";
---------------
and even make an ARRY for table, table1, table2 but it does not work.
Can you help me?
Sincerely,
Carlos
I need some help with tables in MySQL.
I am making a colums of articles in my site.
It has 3 posters that post articles.
I make a little serach page to search for words into articles.
I have the sintax below working, but I need to know what is the syntax
to it select words from several tables. Every table is for a poster
and all tables are in the same DB and have the same fields.
---------------
$searchword="SE LECT * FROM table WHERE comment LIKE
'%$searchstring %'";
---------------
I tried
---------------
$searchword="SE LECT * FROM table, table1, table2 WHERE selected_row
LIKE '%$searchstring %'";
---------------
and even make an ARRY for table, table1, table2 but it does not work.
Can you help me?
Sincerely,
Carlos
Comment