I am trying to return the result from this SQL function
<?php
require_once "func.php";
require_once "websockets.php";
// private $curResultId;
// private $MaxResult;
// private $MinResult;
for( $i = 0; $i<50; $i++ ) {
$row = db_fetch_item("SELECT resultid FROM ResultPackage
where ResultPackage.slotid like '%1'
and ResultPackage.PackageID like '%1%'
ORDER BY resultid desc LIMIT 1");
var_dump($row);
}
?>
However when i run it it returns the following:
array(1) { ["resultid"]=> string(2) "14" }
How do I correct it so its just 14