$limitvalue = $page * $limit - ($limit);
$sql2 = "SELECT * FROM ".$prefix."_tri_profiles where category='$cid' ORDER by common LIMIT $limitvalue, $limit";
$query2 = mysql_query($sql2) or die("Error: " . mysql_error());
if(mysql_num_rows($result) == 0){
echo("Nothing to Display!");
}
//$sql2="select * from ".$prefix."_tri_profiles where category='$cid' ORDER BY common";
//$query2 = mysql_query($sql2);
Last edited by jaded on Sun Feb 08, 2009 4:37 pm; edited 1 time in total
Joined: Mar 30, 2006 Posts: 2456 Location: Pittsburgh, Pennsylvania
Posted:
Sun Feb 08, 2009 3:28 pm
It uses the old $dbi layer as stated in one of your other issues. You need to convert it to the $db layer or enable the $dbi layer again. Both are located here in the forums.
$limitvalue = $page * $limit - ($limit);
$sql2 = "SELECT * FROM ".$prefix."_tri_profiles where category='$cid' ORDER by common LIMIT $limitvalue, $limit";
$query2 = $db->sql_query($sql2) or die("Error: " . $db->sql_error());
if($db->sql_numrows($result) == 0){
echo("Nothing to Display!");
}
//$sql2="select * from ".$prefix."_tri_profiles where category='$cid' ORDER BY common";
//$query2 = $db->sql_query($sql2);
These changes from Dad7732 removed the notices in this module. I have not found any additonal ones within the module as of now. I truly appreciate your help with this. Thank you both!
My info and help is solely dependant on the crew here. I went through the same thing a while back and it's easy to miss a step or two just when you KNOW you modified everything.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum