Hello, a need help with this php file, first i using try out 2 for the files movie.php and commit.php, the problem appears when i add a new movie i fill all fields and allways show me the error 'please enter a movie name', i don't know why i'm trying to solve but i can't and i think that the code is correct:
$movie_name = trim($row[ 'movie_name' ]);
if( empty($movie_name)){
$error .= "Please+enter+a+movie+name%21%0D%0A";
}
i delete the trim($row[]) keeping the the next sentence
$movie_name = 'movie_name' ;
if( empty($movie_name)){
$error .= "Please+enter+a+movie+name%21%0D%0A";
}
and works perfect for commit.php try out 1 but for commit.php try out 2 show me the next error:
Invalid query: Column count doesn't match value count at row 1
waiting for help thx...