history.back(-1);"); }else{ //get the posted answer if (ereg("<[^>]+>", $_POST['txtanswer'])) { phpalert("Error: Answer cannot contains html texts!"); echo(""); } $answer=str_replace("\n","
",$_POST['txtanswer']); $answer=checkInjection($answer); $questionid=$_POST['txtquestionid']; //checks for user login if(isset($_SESSION['currentuserid'])){ $memberid=$_SESSION['currentuserid']; }else{ $memberid=0; } $date=date('Y-m-d'); //saves the posted question for admin verification. mysql_query("Insert into tbl_answer set question_id ='$questionid', date ='$date', answer ='$answer', submitted_by ='$memberid', countrating ='0', totalrating ='0', status ='0' ") or die(mysql_error()); //phpalert('Your answer has been posted successfully.'); $referby="interview-question-answer-posted/$questionid.html"; phpredirect($referby); } } //function to gerenrate bread crumb function getBreadCrumb($id){ global $bcstring; $query_bc=mysql_query("select * from tbl_category where category_id=$id"); if($query_bc){ $result_bc=mysql_fetch_array($query_bc); }else{ global $path404; phpredirect($path404); } $parent_id=$result_bc['parent_id']; $parent_url=$result_bc['category_url']; if($result_bc['category_name']){ $bcstring="» ".$result_bc['category_name']." $bcstring"; } if($parent_id!=0){ getBreadCrumb($result_bc['parent_id']); } } $linkpath=explode("answers/",$_SERVER['REQUEST_URI']); $path404=$linkpath[0]."404.php"; ?> Job Interview :
Home ".$bcstring); ?>
The answer has been posted successfully. It now needs to be approved by admin.
get_results("Select * from tbl_category where status='1' and parent_id=$catid"); $col=1; $totalcol=3; if($query_categories){ foreach($query_categories as $cat){ if($col<1){ ?>
»
Add your reply and enter the chance to earn $.
From : Rating :
Rate : You have already rated this answer."); } if($dorated==0){ ?>
Type your answer below gone

Verification Code