|
if ($page_header != "home") { ?>
}?>
require_once('../includes/DbConnector.php');
require_once('../includes/Validator.php');
// Create an object (instance) of the DbConnector and Validator
$connector = new DbConnector();
$validator = new Validator();
echo '';
$result_lnk = $connector->query('SELECT * from Faq where (CatID=2 or CatID=3) and Site=1 order by CatID');
// Get an array containing the results.
// Loop for each item in that array
$count = 0;
while ($lnk = $connector->fetchArray($result_lnk))
{
echo ''.$lnk[Question].' | ';
}
echo ' |
|
';
?>
$result4 = $connector->query('SELECT * from Faq_Cat where ID=2 and Site=1');
$row_cat2 = $connector->fetchArray($result4);
echo '
';
$result = $connector->query('SELECT * from Faq where CatID=2 and Site=1 order by CatID');
// Get an array containing the results.
// Loop for each item in that array
$count = 0;
while ($row = $connector->fetchArray($result))
{
echo '- '.$row['Question'].'
'.$row['Answer'].'
';
}
?>
|
$result3 = $connector->query('SELECT * from Faq_Cat where ID=3 and Site=1');
$row_cat = $connector->fetchArray($result3);
echo '
';
$result2 = $connector->query('SELECT * from Faq where CatID=3 and Site=1 order by CatID');
// Get an array containing the results.
// Loop for each item in that array
while ($row2 = $connector->fetchArray($result2))
{
echo '- '.$row2['Question'].'
'.$row2['Answer'].'
';
}
?>
|
|