|||||||||||||||||||||||||||||||||||||||||||||||||| ||||||||||||||||||||||||||||||
|||||||
this is place
include("popups.php");
where will i place this one?
|||||||
this is place
include("popups.php");
Code:
<?php
$uid = getuid_sid($sid);
$nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_pops WHERE touid='".$uid."' AND unread='1'"));
if($nopop[0]>0)
{
$sql ="SELECT * FROM fun_pops where touid='".$uid."' AND unread = '1' ORDER BY id LIMIT 1";
$pd = mysql_query($sql);
while ($pop = mysql_fetch_array($pd))
{
$id = mysql_fetch_array(mysql_query("SELECT touid FROM fun_pops WHERE touid='".$uid."'"));
if($uid==$id[0])
{
$chread = mysql_query("UPDATE fun_pops SET unread='0' WHERE id='".$pop[0]."'");
}
$dtop = date("d/m/y - H:i:s",$pop[5]);
$by = getnick_uid($pop[2]);
$msg = htmlspecialchars($pop[1]);
echo "
[b]$by:[/b] $msg - $dtop
";
echo "<a href=\"lists.php?action=sendto&sid=$sid&who=$pop[2]\">RELPY</a>";
echo "
---";
}
}
?>

Comment