SELECT * will get all columns of the table. If you specifically just want the timing, that is overkill.
'$search_input' = film_name
Usually this will be the other way around, WHERE film_name = '$search_input'
To be honest, I don’t know if it should of should not work the other way, I never tried it. but conventionally you would place the column name first, before the value.
mysql_num_rows
mysql_fetch_assoc
These functions have been removed from php and should no longer be in use. You should be using mysqli or pdo to communicate with your database.
The query should get all rows with the given film name, so the problem may be in how you are extracting the data produced by the query. Do you have the code for that?
Yeah, it is not selecting all the row values, it is selecting only one. Why it is happening like that? Is it because I’m using older version of MySQL? OR anything else?
Because in the while loop, you are overwriting the same variables over and over again, so in the end you only have results from the last row.
To see all results, you need to echo them out from within the loop, or create an array to iterate over later.
Mysql will still work in older versions of php. But there is no good reason to continue writing new scripts using it.