<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>else if($action=="male")
{
addonline(getuid_sid($sid),"Viewing Male Gallery","");
echo "<card id=\"main\" title=\"Kranic Wap\">";
$uid = getuid_sid($sid);
//////ALL gallery SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($who!="")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM fun_gallery WHERE sex='M'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM fun_gallery WHERE sex='M'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 5;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
$sql = "SELECT DISTINCT uid FROM fun_gallery WHERE sex='M' ORDER BY uid ASC LIMIT $limit_start, $items_per_page";
echo "
";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$who = $item[0];
$user=getnick_uid($who);
$countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid='".$who."'"));
$lnk = "<a href=\"gallery.php?action=viewuser&who=$who&am p;sid=$sid\">$user</a>($countpics[0])
";
echo "$lnk";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"gallery.php?action=$action&page=$ppage& amp;sid=$sid\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"gallery.php?action=$action&page=$npage& amp;sid=$sid\">Next»</a>";
}
echo "
$page/$num_pages";
if($num_pages>2)
{
$rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"gallery.php\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>
";
echo $rets;
}
echo "<a href=\"gallery.php?action=main&sid=$sid\">Gall ery Main</a>
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
else if($action=="female")
{
addonline(getuid_sid($sid),"Viewing Female Gallery","");
echo "<card id=\"main\" title=\"Kranic Wap\">";
$uid = getuid_sid($sid);
//////ALL gallery SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($who!="")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM fun_gallery WHERE sex='F'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM fun_gallery WHERE sex='F'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 5;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
$sql = "SELECT DISTINCT uid FROM fun_gallery WHERE sex='F' ORDER BY uid ASC LIMIT $limit_start, $items_per_page";
echo "
";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$who = $item[0];
$user=getnick_uid($who);
$countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid='".$who."'"));
$lnk = "<a href=\"gallery.php?action=viewuser&who=$who&am p;sid=$sid\">.$user.</a>($countpics[0])
";
echo "$lnk";
}
}else{
echo "female gallery is empty";
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"gallery.php?action=$action&page=$ppage& amp;sid=$sid\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"gallery.php?action=$action&page=$npage& amp;sid=$sid\">Next»</a>";
}
echo "
$page/$num_pages";
if($num_pages>2)
{
$rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"gallery.php\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>
";
echo $rets;
}
echo "<a href=\"gallery.php?action=main&sid=$sid\">Gall ery Main</a>
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}</div>
am getting this error when i vallidate Failed validation and this Sorry, I am unable to validate this document because on line 3 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication. who can help fix it
{
addonline(getuid_sid($sid),"Viewing Male Gallery","");
echo "<card id=\"main\" title=\"Kranic Wap\">";
$uid = getuid_sid($sid);
//////ALL gallery SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($who!="")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM fun_gallery WHERE sex='M'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM fun_gallery WHERE sex='M'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 5;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
$sql = "SELECT DISTINCT uid FROM fun_gallery WHERE sex='M' ORDER BY uid ASC LIMIT $limit_start, $items_per_page";
echo "
";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$who = $item[0];
$user=getnick_uid($who);
$countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid='".$who."'"));
$lnk = "<a href=\"gallery.php?action=viewuser&who=$who&am p;sid=$sid\">$user</a>($countpics[0])
";
echo "$lnk";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"gallery.php?action=$action&page=$ppage& amp;sid=$sid\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"gallery.php?action=$action&page=$npage& amp;sid=$sid\">Next»</a>";
}
echo "
$page/$num_pages";
if($num_pages>2)
{
$rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"gallery.php\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>
";
echo $rets;
}
echo "<a href=\"gallery.php?action=main&sid=$sid\">Gall ery Main</a>
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
else if($action=="female")
{
addonline(getuid_sid($sid),"Viewing Female Gallery","");
echo "<card id=\"main\" title=\"Kranic Wap\">";
$uid = getuid_sid($sid);
//////ALL gallery SCRIPT <<
if($page=="" || $page<=0)$page=1;
if($who!="")
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM fun_gallery WHERE sex='F'"));
}else{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM fun_gallery WHERE sex='F'"));
}
$num_items = $noi[0]; //changable
$items_per_page= 5;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
$sql = "SELECT DISTINCT uid FROM fun_gallery WHERE sex='F' ORDER BY uid ASC LIMIT $limit_start, $items_per_page";
echo "
";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$who = $item[0];
$user=getnick_uid($who);
$countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM fun_gallery WHERE uid='".$who."'"));
$lnk = "<a href=\"gallery.php?action=viewuser&who=$who&am p;sid=$sid\">.$user.</a>($countpics[0])
";
echo "$lnk";
}
}else{
echo "female gallery is empty";
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"gallery.php?action=$action&page=$ppage& amp;sid=$sid\">«PREV</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"gallery.php?action=$action&page=$npage& amp;sid=$sid\">Next»</a>";
}
echo "
$page/$num_pages";
if($num_pages>2)
{
$rets = "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
$rets .= "<anchor>[GO]";
$rets .= "<go href=\"gallery.php\" method=\"get\">";
$rets .= "<postfield name=\"action\" value=\"$action\"/>";
$rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
$rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
$rets .= "</go></anchor>
";
echo $rets;
}
echo "<a href=\"gallery.php?action=main&sid=$sid\">Gall ery Main</a>
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}</div>
am getting this error when i vallidate Failed validation and this Sorry, I am unable to validate this document because on line 3 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication. who can help fix it
Comment