A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | #

<?php $str=substr($field_name,0,12); $db = mysql_connect("localhost", "root","password"); mysql_select_db("glossary"); $result = mysql_query("SELECT * FROM glossary where (term LIKE 'B%') order by term"); //$result = mysql_query("SELECT * FROM glossary where (term LIKE '$str%') order by term"); $num=mysql_numrows($result); $i=0; while ($i < $num) { $term=mysql_result($result,$i,"term"); $definition=mysql_result($result,$i,"definition"); $number=mysql_result($result,$i,"number"); print ($i % 2) ? "" : ""; print ""; // print ""; ++$i; } ?>
$term   $definition
$definition
Number of entries in database = 1537 Number of entries in this search = 91

Additions/Suggestions/Assistance

- © FLW, Inc 1997- - S.D.G.