Jump to content

Recommended Posts

hey, I have a particular page that first updates my database, then reads from the database.

It seems that my db is using a counter or something, so it wont get the new entries that have just been added.

 

is there a quick way to "reset" my current query so that it will research the entire DB?

 

thanks

 

-matt

You shouldn't have to reset the query, as it will pull whatever the database has in it, regardless of when it was updated. You probably only need to refresh the page to show the update.

 

You also might want to take a look at order of operations in your script. When you press update, I assume it refreshes the page...but you probably have the update query below the content of the page in the script, try moving it to the top and the updated results will be pulled rather than the old ones without having to refresh.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.