I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("e;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/ure at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. butnext button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "&allery page that shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("e;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and nexallery page that shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/mearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/es are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-//next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I woul rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/evious/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to ELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on,hat shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/ariable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic probla2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then hailes;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/allery page that shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=;quote;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/cture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and nex values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the f;quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
e the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/t shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/ERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}
grr am I even going in the right direction?
allery page that shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to theus/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename']; displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("e;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :- get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/allery page that shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basilues for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unig to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/eryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/ to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/allery page that shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logicrevious/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $ne picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray[re out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("e;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames ictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/cture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. ton to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/ ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/ename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$igallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames o get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/ee the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine whate pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filea previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenameame, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("e;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
[/php:1:e47b2he values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determi galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/221f64]
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going ishows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/s in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("e;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}
[/phpt a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $ps a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic pp;amp;lt;BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2ious/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("e;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR&aow to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/o figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pi mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/ trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i&amext button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("e;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestampsget the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/cture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pi see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm re out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timese values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>"e;;
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/enamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/c=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/ out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would jallery page that shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>&qys a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("e;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"e;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestaows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'mallery page that shows one picture at a time, then displays a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_he previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picturede...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/s a previous/next button to see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
see the rest of the pictures in the gallery.
I'm trying to figure out how to get the values for the previous/next button... so I need to store the filenames in a variable.
so far I have this code...Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearrayї'filename'];
echo $pic.$i;
echo "e;<BR>"e;;
}I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
ote;);
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$totalfiles;$i++)
{
$pic.$i = $filenamearray['filename'];
echo $pic.$i;
echo "<BR>";
}
grr am I even going in the right direction?
I would just use a $_GET like pic=1, pic=2, etc.. but the filenames are unix timestamps.
Basically I need a way to determine what picture I'm on, then have a link to the previous and next picture, and I'm having logic problems on how to do it :-/store the filenames in a variable.
so far I have this code...
Code: Select all
$filenamequery = mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC");
$totalfiles = mysql_num_rows($filenamequery);
$filenamearray = mysql_fetch_array($filenamequery);
for($i=0;$i<$e at a time, then displays a p