Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about refreshing the browser using Sessions

Status
Not open for further replies.

kjspear

Programmer
Feb 13, 2002
173
US
Hello again,

I previously was trying to get mysql to do both read and modify records. O.K., I figured out
a way to do it using frames. The main frame will have the following command at the beginning
of my code;

session_start();
session_register('count');

// increment count

$count++;
echo $count;

Session works great. The number increases per refresh, which will automatically advance to the
next reord since I then use $count in $query = ("SELECT * FROM myimagexx where ID=$count");.

I then set up links to other pages wh also use the session_start() command. These two pages
are in two frames, left frame and main frame. How can I get both pages to refresh at the same
time so that the $count++ increases on both of them without using the refresh button on the
I.E. browser?

If I click on a link from the main frame, the number will only increase on the page in the left
frame.

Any assistance would be helpful.

Thanks,
KJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top