Help me function getListCategory()
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 wr开发者_开发知识库ong in $ret[] = $row; Help me with
You have @mysql_query(
.
Drop the @ :
$result = mysql_query("Select * From categories", $conn);
精彩评论