I created a search engine.
Tabela Sessions
ID - NAME - SESS - EPISODE
Tabela Movie
ID - Movie_id, Movie_Name
What I want is to do a select like this:
SELECT id, name, sess, episode FROM sessions WHERE name LIKE '%" . $name . "%' AND user_id ='$sessionID'
Instead of looking at name
, look for Movie_Name
. That is, look for name
( sessions
) and say if it is equal to Movie_id
( movies
), if it shows movie_name
.