include '../config.php'; if (isset($_REQUEST['id'])) { $id = $_REQUEST['id']; } if (isset($_REQUEST['subject'])) { $subject = $_REQUEST['subject']; $subjectU = str_replace(" ", "-", $subject); } if ( $id != '' ) { $quanL=mysqli_query($link, "SELECT * FROM iqa_quesansw where id=".$id ); } else { $quanL=mysqli_query($link, "SELECT * FROM iqa_quesansw where subject = '".$subject."' order by rand() limit 1"); } $quan_rowL=mysqli_fetch_assoc($quanL); $questionL =$quan_rowL['question']; $id =$quan_rowL['id']; $answerL =$quan_rowL['answer']; $update_qr = mysqli_query($link, "update iqa_quesansw set viewed=viewed+1 where id = ".$id); $quan=mysqli_query($link, "SELECT * FROM iqa_quesansw order by viewed limit 1 "); $quan_row=mysqli_fetch_assoc($quan); $idN =$quan_row['id']; $questionN =$quan_row['question']; $update_qr = mysqli_query($link, "update iqa_quesansw set viewed=viewed+1 where id = ".$id); $turl = "iqa/" . $subjectU ; $HeadT = $subject. ' | ' . 'Interview Questions and Answers - '. $id; $HeadD = strip_tags($questionL) . '. The huge collection of Questions and Answers for Interviews. ' ; $tName = $subject ; include '../header1.php' ; ?>