Jump to content

[SOLVED] Getting database updates - after making them


rtpmatt

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.

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.