0){ if($row_rs = mysql_fetch_assoc($rs)){ $category_name = $row_rs["title_menu"]; if($row_rs["categoryid_parent"] . "" != "0"){ //get the parent name mysql_free_result($rs); $query_rs = "SELECT * FROM tbl_trip_planner_categories where categoryid=".$row_rs["categoryid_parent"].";"; $rs = mysql_query($query_rs, $conn) or die(mysql_error()); if($rs && mysql_num_rows($rs)> 0){ if($row_rs = mysql_fetch_assoc($rs)){ $categoryid_parent = $row_rs["categoryid"]; $category_parent_name = $row_rs["title_menu"]; } } } } } mysql_free_result($rs); } ?>
You are here : Home ►Interests
Interests
Contact Us
Name:
E-Mail:
Project Overview:
0){ while ($row_rs = mysql_fetch_assoc($rs)){ if($categoryid . "" == ""){//no category, so we put link to category details echo '

'.$row_rs["title_list"]."

\n"; } else{ echo '

'.$row_rs["title_list"]."

\n"; } echo '

'.$row_rs["text_list"]."

\n"; } } mysql_free_result($rs); ?>