query($query);
while($row = mysqli_fetch_array($result))
{
$long = stripslashes($row['description']);
$strd = strlen ($long);
if ($strd > 140) {
$dlong = substr($long,0,137).'...';
}else{
$dlong = $long;}
$LongTitle = stripslashes($row['title']);
$strt = strlen ($LongTitle);
if ($strt > 40) {
$tlong = substr($LongTitle,0,37).'...';
}else{
$tlong = $LongTitle;}
$PageLink = preg_replace("![^a-z0-9]+!i", "-", $LongTitle);
$PageLink = strtolower($PageLink);
$PageLink = strtolower($PageLink);
//new code
$Type = $row['type'];
$PostId = $row[0];
$up = $row['likes'];
if ($Uid >0){
//Check Votes
if($VcSql= $mysqli->query("SELECT uid FROM favip WHERE postid='$PostId' and uid='$Uid'")){
$VcRow = mysqli_num_rows($VcSql);
}else{
printf("
There seems to be an issue. Please try again
");
}
}
?>