include("$_SERVER[DOCUMENT_ROOT]/ez_sql.php");
include("$_SERVER[DOCUMENT_ROOT]/configdb.php");
$char = strtolower($_GET[alp]);
?>
Textile Terms echo strtoupper($char); ?> Listing - TextileGlossary.com
include("$_SERVER[DOCUMENT_ROOT]/headallfiles.php");
echo "\n";
include("$_SERVER[DOCUMENT_ROOT]/docheader.php");
$sr=$_GET[sr];
if(!($sr >0)){$sr=0;} // initialise the start counter
$pp = 5; // show 10 per page
$sql = "select * from $dbname.$tbltitle where `title` like '$char%' order by `id` desc limit $sr,$pp" ;
$query = $db->get_results($sql);
$numsql = $db->get_results("select * from $dbname.$tbltitle where `title` like '$char%'") ;
$nnn = $db->num_rows;
$num = $db->num_rows;
echo "Textile terms starting with the letter ".strtoupper($char).".
Total $nnn terms. Showing terms ".($sr+1)." to ".($sr+$pp)."...";
?>
if ($query){
foreach( $query as $row) {
$thetitle = str_replace(" ", "_", strtolower($row->title));
echo "
\n";
$sel = "select * from $dbname.$tbldefinition where title_id=$row->id order by `title_id` desc";
$def = $db->get_row($sel);
$num = $db->num_rows;
$definition = strip_tags($def->definition);
$mydefinition=stripslashes(ash_get_intro($definition));
if($num<=1) {
echo "$mydefinition...\n
";
// echo "\n";
} else {
$n= $num-1;
echo "$mydefinition...\n
";
// echo "\n";
}
echo "
";
}
} else {
echo "We currently do not have any terms beginning with the letter $char. But do check back we will be adding them soon!";
}
?>
if ($sr > ($pp-1)) {
$ind = $sr-$pp;
if($ind == 0){$ind = '';}
echo " Prev";
} else {
echo " ";
}
?>
|
if (($nnn>=($sr+$pp))) {
$index = $sr+$pp;
echo "Next ";
} else {
echo " ";
}
?>
|
include("docfooter.php");
?>