Hi there,
This sql statement seems to just return "category" despite the fact its a SMALLINT(3) field.
I have checked spelling and variables so its nothing to do with that.
Why is that? and how do I fix it?
Thanks.
This sql statement seems to just return "category" despite the fact its a SMALLINT(3) field.
I have checked spelling and variables so its nothing to do with that.
Code:
$result = mysql_query("SELECT 'id','name','link','category' FROM software ORDER BY 'id' DESC LIMIT $offset,$rowsPerPage") or die('Error1, query failed');
if ( mysql_num_rows($result) > 0 ) {
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
WriteRow($row['id'],$row['name'],$row['link'],$row['category'],$tabs);
}
Code:
function WriteRow($id,$name,$link,$category,$tabs){
echo $category;
}
Why is that? and how do I fix it?
Thanks.