K
kapeel
Guest
read further) What to do? here's the php code.....plz help
<?php
$ssid=session_id();
$con = mysql_connect($host,$us,$ps);
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$wktd=$_GET["$ssid"];
if ($wktd==null)
{
$pg1=0;
}
else
{
$pg1=$wktd;
}
$pg2=$pg1+20;
mysql_select_db("$db", $con);
for ($i=0; $i<=200; $i++)
{
$rsss = mysql_query("SELECT * FROM sums WHERE no='$i' LIMIT $pg1 ,$pg2 " );
$num = mysql_num_rows($rsss);
while($rss = mysql_fetch_array($rsss))
{
$uss=$rss['Username'];
$nss=$rss['Name'];
$ess=$rss['Email'];
$css=$rss['City'];
$cellno = $i;
$fil = "userjpg/$uss.jpg";
$defe = "userjpg/default.jpg";
if (file_exists($fil)) {
$iss="$fil";
}
else {
$iss="$defe";
}
if (floor($cellno / 4) == ($cellno / 4) )
{
echo "<tr>";
}
echo "<td>***<a class='tb' href='#'><center>$nss</center><BR><img src='$iss' width='100' height='100'/><span><br />Email:$ess<BR>Location:$css</span></a>***</td>";
$cellno += 1;
if (floor($cellno / 4) == ($cellno / 4) )
{
echo "</tr>";
}
}
}
echo "<br /><br />";
?>
<?php
$ssid=session_id();
$con = mysql_connect($host,$us,$ps);
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
$wktd=$_GET["$ssid"];
if ($wktd==null)
{
$pg1=0;
}
else
{
$pg1=$wktd;
}
$pg2=$pg1+20;
mysql_select_db("$db", $con);
for ($i=0; $i<=200; $i++)
{
$rsss = mysql_query("SELECT * FROM sums WHERE no='$i' LIMIT $pg1 ,$pg2 " );
$num = mysql_num_rows($rsss);
while($rss = mysql_fetch_array($rsss))
{
$uss=$rss['Username'];
$nss=$rss['Name'];
$ess=$rss['Email'];
$css=$rss['City'];
$cellno = $i;
$fil = "userjpg/$uss.jpg";
$defe = "userjpg/default.jpg";
if (file_exists($fil)) {
$iss="$fil";
}
else {
$iss="$defe";
}
if (floor($cellno / 4) == ($cellno / 4) )
{
echo "<tr>";
}
echo "<td>***<a class='tb' href='#'><center>$nss</center><BR><img src='$iss' width='100' height='100'/><span><br />Email:$ess<BR>Location:$css</span></a>***</td>";
$cellno += 1;
if (floor($cellno / 4) == ($cellno / 4) )
{
echo "</tr>";
}
}
}
echo "<br /><br />";
?>