Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/autosuggest/
Upload File :
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>