ok i tried that
and i still got nothing 🙁
anyone have any ideas?
<?
include("db.php");
$query2 = "SELECT * FROM users WHERE id=$id";
$result = mysql_query($query2);
$row = mysql_fetch_array($result);
$id=$_GET["1"];
echo "<tr>";
echo "<td width=\"100%\"><b><font face=\"Verdana\" size=\"2\">".$row["1"]." :: ".$row["10"]." Mercury Cougar</font></b></td>";
echo "</tr>";
?>
</table>
<p> </p>
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3" height="200">
<tr>
<td width="50%" valign="top"><b><font size="2" face="Verdana">Mods</font></b><ul>
<?
if ($row["12"] == "") {
}
else
{
echo "<li><font face=\"Verdana\" size=\"1\">".$row["12"];
echo "</font></li>";
}
?>
<?
if ($row["25"] == "") {
}
else
{
echo "<li><font face=\"Verdana\" size=\"1\">".$row["25"];
echo "</font></li>";
}
?><?
if ($row["13"] == "") {
}
else
{
echo "<li><font face=\"Verdana\" size=\"1\">".$row["13"];
echo "</font></li>";
}
?><?
if ($row["26"] == "") {
}
else
{
echo "<li><font face=\"Verdana\" size=\"1\">".$row["26"];
echo "</font></li>";
}
?>
that's my general script and all the rows above display perfectly... it's great.. on show.php?id=1... BUT... this portion does not work! but it does work if i do WHERE id=1"; in my query.....
here's the part that won't work, any one that can help me 🙁
<?
$incldir="db/memberpics/".$row["1"]."/";
$pagenum=$QUERY_STRING;
if ( $pagenum == NULL ) {
$pagenum=1;
}
$realpage=$pagenum - 1;
$linecount=0;
$d2 = dir($incldir);
while($entry=$d2->read()) {
if ( $entry != "." && $entry != ".." && $entry != ".total" ) {
$linecount++;
}
}
$pagecount=$realpage * 5 + 1;
$endcount=$pagecount + 5;
$totalpages=floor($linecount / 5);
$rtotalpages=$linecount % 5;
if ( $rtotalpages >= 1 ) {
$totalpages++;
}
//line 30
$currcount=1;
$d2 = dir($incldir);
while($entry=$d2->read()) {
if ( $entry != "." && $entry != ".." ) {
if ( $currcount < $endcount && $currcount >= $pagecount )
{
echo "<a href=\"db/memberpics/".$row["1"]."/${entry}\"><img src=\"db/memberpics/".$row["1"]."/${entry}\" border=0></a> ";
}
$currcount++;
}
}
echo "<br><Br>";
$back=$pagenum - 1;
$next=$pagenum + 1;
if ( $back < "1" ) {
echo " ";
} else {
echo "<A href=\"show.php?$back\"><<</a>";
echo " ";
}
$totalpagecount=1;
while ( $totalpagecount <= $totalpages ) {
if ( $totalpagecount == $pagenum ) {
echo "<b>$totalpagecount</b> ";
} else {
echo "<a href=\"show.php?$totalpagecount\">$totalpagecount</a> ";
}
$totalpagecount++;
}
if ( $next > $totalpages ) {
echo " ";
} else {
echo "<A href=\"show.php?$next\">>></a>";
}
?>
thanks 😃