Hi i want to acheive the following results for the purpose of a search script in php i have 2 tables like this
Table 1 :
-----------------------------
id l name l url l image url l
-------------------------------
Table 2 :
-----------------------------------
id l tableoneid l desc l content l
------------------------------------
Note : (Table 1 --> id) = (Table 2 ---> tableoneid)
what i want to acheive is to get a MYSQL query that search :
- Step 1 : The table 2 column [content] when i get the result i need their [tableoneid] values,
- Step 2 : Next i want to use that in order to search the Table 1 column 1
- Step 3 : The final results would be the corresponding [image url] column of the Step 2 results
how can i acheive that with php/mysql
thank you very much !