| Current Path : /var/www/cesa.co.za/autosuggest/ |
| Current File : /var/www/cesa.co.za/autosuggest/organisation.php |
<?php
header("Content-type: text/xml");
/*the returned xml has the following structure
<results>
<rs>foo</rs>
<rs>bar</rs>
</results>*/
include("../php/inc_db.php");
$SearchField = "PharmacyName";
?><results>
<?php
$sSqlWrk = "SELECT SchoolAttendeeOrg FROM SchoolAttendeeOrgs
WHERE UPPER(SchoolAttendeeOrg) LIKE '%".strtoupper($_GET["Input"])."%' ORDER BY SchoolAttendeeOrg";
//echo $sSqlWrk;
$recwrk = mysql_query($sSqlWrk);
while ($rswrk = mysql_fetch_assoc($recwrk)) {
$sDisplay = trim($rswrk["SchoolAttendeeOrg"]."");
?><rs id="<?php echo $rswrk["SchoolAttendeeOrg"]; ?>" info="<?php echo $rswrk["SchoolAttendeeOrg"]; ?>"><?php echo $sDisplay; ?></rs>
<?php
}
mysql_free_result($recwrk);
?></results>