Jump to content

storing the requested value to get access.Any help is highly appreciated.


srk2010

Recommended Posts

:'(can you help me guys

 

This is the link.

---------------------------------------------------------------------------------------------------------------------

<a href="wallpapers.php?celebrity=deepika"> image</a>

---------------------------------------------------------------------------------------------------------------------

after cicking the link i will go to  wallpapers.php?celebrity=Deepika

 

on this page i have

---------------------------------------------------------------------------------------------------------------------

<?php

include "connection.php";

 

$select="select * from gallery where (img_name='".$_REQUEST['celebrity']."')  order by id limit 0,1";

$img_query=mysql_query($select) or die(mysql_error());

while($image=mysql_fetch_array($img_query)) {?>

 

<?php echo "<img src='img/tmp.jpg' "; }?>

---------------------------------------------------------------------------------------------------------------------

pagination 1 2 3 4 5

---------------------------------------------------------------------------------------------------------------------

forthe first page i have data related to the requested value

 

after clicking the 2nd page in pagination

 

the requested value is not there.I get blank page with no data

 

so i need to store the variable and get access to that requested value with every page in pagination

 

to that particular value

 

is it possible ?

 

any help is highly appreciated

 

If you don't have the values for the forthcoming pages, it doesn't seem like the pagination would work. It probably isn't necessary to use session variables either. If you could post more code, it would be easier for people to help you.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.