1<?php 2$where = (isset($_GET['where']) && isValidLetter($_GET['where'], "%" )) ? $_GET['where'] : ''; 3$search = ($where == "") ? "All" : $_GET['where']; 4 5$sql = "SELECT recipe_id,recipe_name FROM $db_table_recipes WHERE recipe_name LIKE '".$DB_LINK->addq($where, get_magic_quotes_gpc())."%' OR recipe_name LIKE '" 6 . strtolower($DB_LINK->addq($where, get_magic_quotes_gpc())) . "%' ORDER BY recipe_name"; 7 8$rc = $DB_LINK->Execute( $sql ); 9 10?> 11<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="b"> 12 <li data-role="list-divider">Recipes (<?php echo $search;?>)</li> 13<?php 14while (!$rc->EOF) { 15 echo '<li><a href="./index.php?m=recipes&a=view_mob&recipe_id='.$rc->fields['recipe_id'].'">'.$rc->fields['recipe_name'].'</a></li>'; 16 $rc->MoveNext(); 17} 18?> 19</ul>