$select = " SELECT * FROM comments WHERE type=$row->title; ORDER BY id desc" .
" LIMIT $low, $PerPage";
$final = mysql_query($select) or die('Error!');
$row->title; is previously created and it have value like Type1, Type2 or something else. When I start that script the result is "Error!". Could you tell me why? I have tried many ways to reslove the problem but without any result. This is one of them:
$mytype=$row->title;
$select = " SELECT * FROM comments WHERE type=$mytype; ORDER BY id desc" .
" LIMIT $low, $PerPage";
$final = mysql_query($select) or die('Error!');