Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $q = strtolower($_GET["q"]);
- $q= mysql_real_escape_string($q);
- if (!$q) return;
- $sql = ("SELECT headings FROM dictionary WHERE headings LIKE '$q%' LIMIT 3");
- $rsd = mysql_query($sql);
- while($rs = mysql_fetch_array($rsd)) {
- $auto = $rs['headings'];
- echo "$auton";
- }
- if (mysql_num_rows(mysql_query("SELECT headings FROM dictionary WHERE headings LIKE '$q%' LIMIT 3")) == 0){
- $res = mysql_query("SELECT spelling FROM spellcheck WHERE spelling LIKE '$s%' LIMIT 3");
- while($result = mysql_fetch_array($res)) {
- $spell = $result['spelling'];
- echo "$spelln";
- }
- }
Add Comment
Please, Sign In to add comment