PHP Classes

File: fwphp/glomodul/z_examples/AJAX_form_valid/Meloni/search.php

Recommend this page to a friend!
  Classes of Slavko Srakocic   B12 PHP FW   fwphp/glomodul/z_examples/AJAX_form_valid/Meloni/search.php   Download  
File: fwphp/glomodul/z_examples/AJAX_form_valid/Meloni/search.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: Update of fwphp/glomodul/z_examples/AJAX_form_valid/Meloni/search.php
Date: 1 year ago
Size: 579 bytes
 

Contents

Class file image Download
<?php
  header
("Content-type: text/xml");
 
$names = array (
  
"John Smith", "John Jones", "Jane Smith", "Jane Tillman",
  
"Abraham Lincoln", "Sally Johnson", "Kilgore Trout",
  
"Bob Atkinson","Joe Cool", "Dorothy Barnes",
  
"Elizabeth Carlson", "Frank Dixon", "Gertrude East",
  
"Harvey Frank", "Inigo Montoya", "Jeff Austin",
  
"Lynn Arlington", "Michael Washington", "Nancy West" );

echo
"<?xml version=\"1.0\" ?>\n";
echo
"<names>\n";
while (list(
$k,$v)=each($names)) {
   if (
stristr($v,$_GET['query'])) {
      echo
"<name>$v</name>\n";
   }
}
echo
"</names>\n";
?>