Powered by Faq Administrator

"; ?> "); print (""); ?>
Total Replies 
"); print (""); /// $zresult = mysql_query ("SELECT count(*) as replies from faq_dat, faq_re_dat WHERE faq_re_dat.fodr = faq_dat.fodr AND faq_dat.fodr = '$fodrx' "); if ($myrow = mysql_fetch_array($zresult)) { do { print $myrow["replies"]; } while ($myrow = mysql_fetch_array($zresult)); } # include ("hist_replycount.php"); /// print (""); print ("


"); print $myrow["faq_user"]; print (" "); print "$fuemail"; print ("
"); print $myrow["faq_date"]; print ("
"); print ("Subject:"); print (" "); print $myrow["faq_memo"]; print ("

"); print ("Question:"); print ("
"); $alt1=str_replace("\n\r\n", "

", $myrow['faq_dat']); $alt1=nl2br($alt1); print "$alt1"; print (""); } while ($myrow = mysql_fetch_array($result)); } else { echo "Sorry, this FAQ seems to be unavailable"; } ?> "); } while ($myrow = mysql_fetch_array($result)); $pages=intval($numrows/$limit); if ($numrows%$limit) { $pages++; } if (!((($page+$limit) / $limit) >= $pages) && $pages !=1) { // If last page don't give next link. $newoffset=$offset+$limit; $next_page = $page + $limit; echo("   Next");} if (((($page-$limit) / $limit) >= 0)) { // If first page don't give previous link. $prevoffset=$offset-$limit; $prev_page = $page - $limit; echo("   Prev");} } else { echo "
Looks Like you're the first to Reply to this Question.. CONGRATULATIONS !!!!!"; } ?>
Replies To This Question 
"); print (""); print ("From:"); print (" "); print $myrow["faq_reuser"]; print (" "); print "$ruemail"; print ("  Date: $xdate"); print ("
"); print ("RE:"); print (" "); print $myrow["faq_memo"]; print ("

"); $alt2=str_replace("\n\r\n", "

", $myrow['refaq_data']); $alt2=nl2br($alt2); print "$alt2"; print (" "); print (""); print ("


Post a new Response:

"); print ("

"); #if($myrow['email']=="Y") {print "";} #if($myrow['email']=="N") {print "";} print ""; print ""; print ""; print (""); print ("Name:"); print (""); print ("Email:   *Optional"); print (""); print (""); print (""); print (""); print (""); print (""); print (""); print ("Message:"); print (""); print '

'; print (""); print (""); print (""); print (""); $xresult = mysql_query ("SELECT replies from faq_dat WHERE fodr = '$fodrx' "); if ($myrow = mysql_fetch_array($xresult)) { print ""; } $m2= $myrow["replies"]; $m3 = $m1 + $m2; print ''; print (" "); print ("

"); print (""); } while ($myrow = mysql_fetch_array($result)); } session_destroy(); ?> ERROR!";} }else{ if($submit == "Reply"){?> Your Reply has been Saved ! '); if(ereg("www","$faq_reuser_email")){header("Location: faqhist.php"); $m1 = "0"; exit();} if(ereg("://","$faq_reuser_email")){header("Location: faqhist.php"); $m1 = "0"; exit();} if (preg_match("/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@( [a-zA-Z0-9_-] )+( [a-zA-Z0-9\._-] +)+$/" , $faq_reuser_email)){$faq_reuser_email = "";} if (ereg(".", $refaq_data) == 1){ $query = "update faq_dat set replies = '$m3' where fodr = '$fodrx'"; $result = mysql_query($query,$connection) or die("Error in form data"); $sql = "insert into faq_re_dat(refaq_data, faq_reuser, faq_re_memo, faq_reuser_email, faq_re_fid, fodr) values ('$refaq_data', '$faq_reuser', '$faq_re_memo', '$faq_reuser_email', '$faq_re_fid', '$fodrx')"; $result = mysql_query($sql); $query = "update faq_dat set redate = '$qdate' where fodr = '$fodrx' "; $result2 = mysql_query($query) or die(mysql_error()); if($email == "Y"){ $recipient = "$faq_user_email"; $subject = "Re: $faqmem"; $message = "You have received a responce to your question posted at\nhttp://www.campbus.com/faq/faqhist.php?fodrx=$fodrx&m1=1&fm=$xfm&fid=$faq_re_fid"; $extra = "From: Faq Administrator"; mail($recipient,$subject,$message,$extra); } if($email == "N"){echo "\n
Thank You!!\n
";} echo "Your Reply Has Been Saved !
Thank You for using Faq Administrator
\n"; }else{ print ("Error: A Subject Title is required. Save was aborted!!"); $verify = "bad"; } }else{echo "

ERROR!

";} } ?>