In this post, we will see how to resolve I have two queries one works one doesn’t using php and mysql?
Question:
I am creating a movie database and I have a query that finds movies by their ID and it is working.I also tried a function to see if title is being passed by $_POST and it shows it is.
Best Answer:
Passing a value such as'Alien'
to the LIKE
operator does not do what you expect.This predicate…
'%'
, the wildcard character :If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review