Geting problem with images

wxdqz

New Member
Can you help me?

I am dealing with this 3 files : Choice.php, Common_db.inc and Viewrecords.php.

Through Choice.php file I have given two choices to the user to select the image categories
and am passing these two values to viewrecords.php ( $mainsele and $subsele ).

Through Viewrecords.php I want to display images of selected categories ($mainsele & $subsele )
page wise using <previous> <next> buttons.

Through Common_db.inc I am opening the mySQL database.

If instead of variable I use constant value like 2 and 7 for $mainsele & $subsele my code
works quite nicely. But when I try to use the variable so that the user can choose any
category and display the related images my code just blows up. It displays only the first
page and it loose the data of the two variable $mainsele & $subsele subsequently?

How can I keep the data of these two variable $mainsele and $subsele in self running php code?
Can anybody guide me? Thanks in advance.
 
Back
Top