Picture gallery

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Picture gallery

Post by s.dot »

I have a picture gallery 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(&quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC&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 &quote;<BR>&quote;;
}
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 :-/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>";
}
grr am I even going in the right direction?

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>";
}
llery.

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>";
}
grr am I even going in the right directioe 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 "&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(&quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC&quote;);

$totalfiles = mysql_num_rows($filenamequery);

$filenamearray = mysql_fetch_array($filenamequery);

for($i=0;$i&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
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 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>";
}
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 :-/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>";
}
grr am I even going in the right direction?

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&lt;$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&lt;$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 :-/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>";
}
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 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>";
}
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 :-/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>";
}
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 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>";
}
grr am I even going in the right direction?

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>";
}
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 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>";
}
grr am I even going in the right direction?

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>";
}
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 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>";
}
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 :-/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>";
}
grr am I even going in the right direction?

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>";
}
grr am I even going in the right direction?
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>";
}
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
$totalfiles = mysql_num_rows($filenamequery);

$filenamearray = mysql_fetch_array($filenamequery);

for($i=0;$i&lt;$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>";
}
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 :-/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>";
}
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 :-/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 &quote;&lt;BR&gt;&quote;;
}


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>";
}
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 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&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'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(&quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC&quote;);

$totalfiles = mysql_num_rows($filenamequery);

$filenamearray = mysql_fetch_array($filenamequery);

for($i=0;$i&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
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 :- 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>";
}
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>";
}
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.

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>";
}
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 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>";
}
grr am I even going in the right direction?

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>";
}
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>";
}
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 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&lt;$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 &quote;&lt;BR&gt;&quote;;
}
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 :-/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(&quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC&quote;);

$totalfiles = mysql_num_rows($filenamequery);

$filenamearray = mysql_fetch_array($filenamequery);

for($i=0;$i&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
grr am I even going in the right direction?

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>";
}
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>";
}
grr am I even going inhow 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>";
}
grr am I even going in the right direction?

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>";
}
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 :-/ 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&lt;$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>";
}
grr am I even going in the right direction?

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>";
}
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 :-/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>";
}
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 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&lt;$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(&quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC&quote;);

$totalfiles = mysql_num_rows($filenamequery);

$filenamearray = mysql_fetch_array($filenamequery);

for($i=0;$i&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
grr am I even going in the right direction?

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&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
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 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 &quote;&lt;BR&gt;&quote;;
}


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>";
}
grr am I even going in the right din 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>";
}
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 :-/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>";
}
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 :-/s in a variable.

so far I have this code...

Code: Select all

$filenamequery = mysql_query(&quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC&quote;);

$totalfiles = mysql_num_rows($filenamequery);

$filenamearray = mysql_fetch_array($filenamequery);

for($i=0;$i&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
[/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&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'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&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
gro 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>";
}
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 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>";
}
grr am I even going in the right direction?

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(&quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC&quote;);

$totalfiles = mysql_num_rows($filenamequery);

$filenamearray = mysql_fetch_array($filenamequery);

for($i=0;$i&lt;$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&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
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 :-/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>";
}
grr am I even going in the right direction?

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(&quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC&quote;);

$totalfiles = mysql_num_rows($filenamequery);

$filenamearray = mysql_fetch_array($filenamequery);

for($i=0;$i&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
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 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>";
}
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>";
}
grr am I even going in the right direction?

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>";
}
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 :-/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>";
}
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 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>";
}
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 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>";
}
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
$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>&quote;;
}


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>";
}
grr am I even going in the right direction?

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(&quote;SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC&quote;);

$totalfiles = mysql_num_rows($filenamequery);

$filenamearray = mysql_fetch_array($filenamequery);

for($i=0;$i&lt;$totalfiles;$i++)
{
	$pic.$i = $filenamearray&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
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 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>";
}
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'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>";
}
grr am I even going in the right direction?

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>";
}
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 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>";
}
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 :-/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&lt;$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&#1111;'filename'];
	echo $pic.$i;
	echo &quote;&lt;BR&gt;&quote;;
}
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.
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&lt;$e at a time, then displays a p
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

you're on the right track already.

1) create an array and determine its size.
2) use a url var to determine which key you're on
3) fetch the file name for that key
4) display prev links (if key != 0)
5) display next link (if key != sizeOf array)
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Burrito wrote:you're on the right track already.

3) fetch the file name for that key
I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0rack already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar wfor that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3][/php:1:b7e52fGET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be
[php:1:b7e52fd

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0b7e52fdc7a]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays seady.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:
52fdc7a]$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ld be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] siay['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0he filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays stamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0]
:?:

EDIT: make that [2] since arrays start with 0 track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3][/php:1:b7e52fdproblem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ht track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays starcture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ing the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0DIT: make that [2] since arrays start with 0hp]$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0uote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0e on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0111;'filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#1111;ecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: mak fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with )

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename
blem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0amp;pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ename'][3]
:?:

EDIT: make that [2] since arrays start with 0ple)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that le name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make thatright track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0?:

EDIT: make that [2] since arrays start with 0ic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get
I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0xample)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamilia key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0e52fdc7a]
:?:

EDIT: make that [2] since arrays start with 0filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0$_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0e)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$fi

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] sincy.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the correspondin/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0y problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0;'filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0at 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be
[php:already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: mhe file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ady.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm uname for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ample)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0;amp;pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0
would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0or that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how [/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0
3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $arric=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0EDIT: make that [2] since arrays start with 0=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the correspondin the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $ar"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0he file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 :?:

EDIT: make that [2] since arrays start with 0cture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ck already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename electing the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#1111;3]
:?:

EDIT: make that [2] since arrays start with 0cture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0dc7a]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unf fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3][/php:1:b7etrack already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be
[php:1) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#1111;3]
:?:

EDIT: make that [2] since arrays start with 0uld use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to y.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$fin the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#1111;3]
:?:

EDIT: make that [2] since arrays starme

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0
My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how tc7a]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 07e52fdc7a]
:?:

EDIT: make that [2] since arrays start with 052fdc7a]$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be
[php:1:
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filenameack already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ample)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since e like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename']&#1111 &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be
[pple)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

woulready.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get tquote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename'][3]
:?:

EDIT: make that [2] since arrays start with 0nding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0riable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0
I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0familiar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ould use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0a]$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: m track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3][/ke &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0lem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ack already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0e.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3][/php:1:b7e52fd &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#1111;3]
:?:

EDIT: make that [2] since arrays start with 0[2] since arrays start wit already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ike &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be
[ph for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#111c=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be
[php: $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#1111;3]
:?:

EDIT: make that [2] since arrays start with 0ET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

w"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ady.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start worresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ck already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename']&#that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be
[php:1:b7e52fblem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ady.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0etch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#1111;) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] setch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrayuld use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0electing the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = ting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#1111;3]
:?:

EDIT: make that [2] since arrays startget the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0name = $array['filename'][3]
:?:

EDIT: make tha that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1 on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename']&#1111;3]
:?:

EDIT: make that [2] since arrays start with 0"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start wity
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename'][3]
:?:

EDIT: make that [2] since arrays start with 0or that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0 name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get thght track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

wouldample)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0he right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ight track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm u fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ady.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0etch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array&#1111;'filename"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0
I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0ey
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 02fdc7a]
:?:

EDIT: make that [2] since arrays start with 0ke that [2] since arrays start with 0ght track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2]My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0y problem comes with selecting the filename for that picture.

I get that 3 would be the key, btrack already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['fyou're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get tk already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0;pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0h the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $hat 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $array['filename'][3]
:?:

EDIT: make that [2] since arrays start with 0t track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be the key, but I'm unfamiliar with how to get the corresponding filename

would it be

Code: Select all

$filename = $arr"Burrito"]you're on the right track already.

3) fetch the file name for that key
[/quote]

I could use a $_GET variable like &pic=3 (example)

My problem comes with selecting the filename for that picture.

I get that 3 would be t
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

just create an array with the value (url to image) associated with the key and display the value based on the key.

ex:

Code: Select all

echo "<img src=\"".arrayName[$_GET['pic']]."\">";
//then show the next prev if necessary:
if($_GET['pic'] != 0)
  // show prev
if($_GET['pic'] != sizeOf(arrayname))
  // show next
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Code: Select all

// url = blah.php?type=digital&gal=22&pic=1

$filenamearray = mysql_fetch_array(mysql_query("SELECT filename FROM $data2 WHERE galleryid = '$gal' ORDER BY id ASC"));

$filename = $filenamearray[$_GET['pic']];

echo $filename;
This returns nothing.
I appologize for not understanding this, but I'm relatively new to using keys.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

try a print_r() on your array and see what it shows:

it will give you a print out of your array keys and their associated values.

you can determine if everything is in there as you suspect.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Array ( [0] => 1121034250.jpg [filename] => 1121034250.jpg )

That's what it shows.
However there should be 4 keys to this array, so it's not showing them.

PS.. if $_GET['pic'] is 1 (for the first picture) then the actual key I should use is $_GET['pic']-1
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

I think you need to loop over the results to build the entire array...also it looks like it's creating an accociative array as well as the numbered array.

you can use a constant MYSQL_NUM (I believe) as your second argument of the function to return only the numbered array.

I was actually suggesting that you build a new array with the results returned from the db.

ex:

Code: Select all

$bob = array();
while($row = mysql_fetch_assoc()){
  $bob[] = $row['urltopicture'];
}
// now use your $bob[] array that should be totally populated.
Post Reply