$sql="select * from $table_name by pro_id asc limit $offset,$psize";
改成
$sql="select * from $table_name by pro_id asc limit $offset,".($offset+$psize);
试试