|
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 '';
$arrList = range('A','Z');
foreach ($arrList as $value) {
echo '' .
$value . ' ';
}
echo '
';
?>
$result4 = $connector->query('SELECT * from Faq_Cat where ID=1 and Site=2');
$row_cat2 = $connector->fetchArray($result4);
echo '
';
$result = $connector->query('SELECT * from Faq where CatID=1 and Site=2 order by replace(Question,"<*>","")');
// Get an array containing the results.
// Loop for each item in that array
$count = 0;
while ($row = $connector->fetchArray($result))
{
$word = strip_tags($row[Question]);
$first_letter = substr($word, 0, 1);
if ($last_letter != $first_letter)
{
$word_str = ''.$word.'';
}
else
{
$word_str = $word;
}
echo '- '.$word_str.'
'.$row['Answer'].'
';
$last_letter = $first_letter;
}
?>
|
|