PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 14th, 2004, 03:32 PM
devey devey is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 9 devey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
update needs a refresh

Hi all,
i have a section that runs an if then statement and updates the database
depending on outcome. This is fine however lower down in the page i have
a variable that requires the field record that has been updated but the
problem is that it takes the old value unless a page refresh is done.

I am assuming its due to the time to update the database. Is there anyway
around this?

thanks in advance

EDIT its that html thing again isn't it I keep on forgetting about this. Anyway
achieved it by setting a refresh page prior to loading the page mentioned above
and in the refresh page i run the if statement. Then use some javascript to
refresh instantly. Its a bit messy but its all i could come up with

Reply With Quote
  #2  
Old October 25th, 2004, 08:36 AM
jayminkapish jayminkapish is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 1 jayminkapish User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Update Reply

Hello,

U Can Do Onething When U Need To Update Anything On Ur Page Open A
Popup Window Using Javascript And Write Update Code There. Once
Update Complete Give One Link To Close Window And On This Link Call
Javascript Function To Reload Parent From Child. So Child Window Will
Close And Parent Will Be Reloaded.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > update needs a refresh


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT