can someone help me with this problem??
here's the code that gives me that error
public function getResults($result)
{
$rxarray = mysql_fetch_array($result);
if(!is_array($rxarray))
{
return FALSE;
}
return $rxarray;
}
the line that specifically errors is
$rxarray = mysql_fetch_array($result);
i don't know why it keeps giving me and error
i use that code in here :
<?PHP
if(isset($_POST["select"]))
{
$updateID = $_POST["updateID"];
$results = $l->wherew("item_list","*","$updateID","ID");
while($data = $l->getResults($results))
{
$Item_Name = $_POST["updateItem_Name"];
$l->setItemName($data["Item_Name"]);
$In_Stock = $_POST["updateIn_Stock"];
$l->setInStock($data["In_Stock"]);
$Capital_Price = $_POST["updateCapital_Price"];
$l->setCapitalPrice($data["Capital_Price"]);
$Price = $_POST["updatePrice"];
$l->setPrice($data["Price"]);
$table = "item_list";
$value = "default,'$Item_Name','$In_Stock','$Capital_Price','$Price'";
$l->update($table,$value,$updateID);
echo "Successfully Updated";
}
}
?>
i can't finish my project :'(