function getCategoryList()
{
global $conn;
$result = @mysql_query("Select * From categories", $conn);
$ret = array();
while($row = mysql_fetch_assoc($result))
{
$ret[] = $row;
}
return $ret;
}
=> output = null
Although database not null (ex: category(1, laptop, 500))
I think it wrong in $ret[] = $row;
Help me with
You have
@mysql_query(.Drop the @ :