Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
this is my code
PHP
<p>PLEASE ENTER YOUR MOVIE NAME :
        
      </p><br><br>
        
      
       0 );
        {
        while ($row =mysqli_fetch_assoc($result)) {
          echo 'Name :'.$row['name'].'<br>'.'Gener :'.
          $row['gener'].'<br>'.'Year of prodction :'.
          $row['yearofprodction'].'<br>'.'Your opinion :'
          .$row['opinion'];
          break;
         }
       }
      }
      else{
       header("Location:page2form.php");
      }

       ?>


What I have tried:

i tride to delet the ; $NAME ....................
Posted
Updated 19-Feb-23 6:41am
v2
Comments
CHill60 17-Feb-23 12:48pm    
You haven't shared your sql statement - that is where the error is

1 solution

With no sql statement posted, it is almost impossible to guess where the error occurred. Seems you are working with movies so genre pops to mind, you have it spelled as gener, might be your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900