view php/read/getBrowseNodes.php @ 56:5f772caee9a7

try getting review from DB if throttled
author Charlie Root
date Fri, 07 Jun 2019 16:36:06 -0400
parents a67bf725e87b
children
line wrap: on
line source

<?PHP

include "db.php";

$query = "CALL b_getBrowseNodes()";
$results = mysqli_query($link, $query) or exit( mysqli_error( $link ));

$output = "";
$output .=  "<?xml version=\"1.0\"?>";
$output .=  "<BrowseNodeKey>";

while($line = mysqli_fetch_assoc($results)) {
	
	$output .=  "<Node>";
	$output .=  "<Key>" . htmlspecialchars(trim($line["BrowseNodeID"])) . "</Key>";
	$output .=  "<Value>" . htmlspecialchars(trim($line["BrowseNodeValue"])) . "</Value>";
	$output .=  "</Node>";
}

$output .=  "</BrowseNodeKey>";

echo $output;

mysqli_close($link);


?>