Search the Community
Showing results for tags 'details'.
-
Hai Folks, Please help me in this situation, Actually my case is bit complicated i have a list of few movies.please check the attached file. If we click on each movies ,i want to direct into next page describing details of that clicked movie (review,image,syopsis,time).can you help me to write code following is the code for showing movie list. <?php $movienames=''; //connecting to databse : using 4 values $con=mysqli_connect("localhost","rino","7eL8axn749QQMBzC","project"); // checking:if 4 values are true , show error:if its false if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } // if its true:select values from appropriate table $result=mysqli_query($con,"SELECT * FROM movies"); // if in table fetch it. $row_cnt = mysqli_num_rows($result); if($row_cnt>0) { while($rino = mysqli_fetch_array($result)) { $movienames .= $rino['name'] ."<br>"; } I created tables in database,movies,details etc. nameid of movies table is same as nameid of details.