Welcome to B&B Concrete & General Construction!
Frequently Asked Questions
There Are No Questions Entered"); } else if($numrows > 0){ print("Select Your Category Below:
"); print("- ");
while ($row=mysql_fetch_array($result)) {
$cat_id=$row['cat_id'];
$cat_name=$row['cat_name'];
$cat_desc=$row['cat_desc'];
$cat_date_added=$row['cat_date_added'];
$cat_date_last_mod=$row['cat_date_last_mod'];
$cat_allow=$row['cat_allow'];
print("
- $cat_name "); } print("
There Are No Questions Entered
"); } elseif($numrows > 0){ while ($row=mysql_fetch_array($result)) { $cat_id=$row['cat_id']; $cat_name=$row['cat_name']; print("Frequently Asked Questions: $cat_name
"); $query2="SELECT * FROM questions where cat_id=$cat_id AND ques_allow=1 ORDER BY ques_title"; $result2 = mysql_query($query2); $numrows2=mysql_num_rows($result2); if($numrows2 < 1){ print("There Are No Questions Entered For This Category
"); } if($numrows2 > 0){ print("- ");
while ($row2=mysql_fetch_array($result2)) {
$ques_id=$row2['ques_id'];
$cat_id=$row2['cat_id'];
$ques_title=$row2['ques_title'];
print("
- $ques_title "); } print("
"); $query3="SELECT * FROM questions where cat_id=$cat_id AND ques_allow=1 ORDER BY ques_title"; $result3 = mysql_query($query3); while ($row3=mysql_fetch_array($result3)) { $ques_id=$row3['ques_id']; $cat_id=$row3['cat_id']; $ques_title=$row3['ques_title']; $ques_answer=$row3['ques_answer']; $ques_date_added=$row3['ques_date_added']; $ques_allow=$row3['ques_allow']; print(""); } } } } print(""); } ?>