Jump to content

Recommended Posts

Hi guys,

 

I have a content management system that allows me to add/edit/delete entries in our site's database. I'm trying to update a column in a table that has different values. One of the values is "Unknown." and I'm trying to replace all instances with "Not available." Here's the code:

UPDATE axes
SET req = "Not available."
WHERE req = "Unknown.";

 

Simple, right? It does work - the changes show up when I view the entries in the DB; however, when I go visit one of the entries to see if the changes were made, I still see "Unknown." in the req field. In other words, the site does not display the change.

 

Any idea why this is happening? I do not want to manually go through each entry with the unknown value, as there are over 1000 such entries.

 

Thanks much!

Link to comment
https://forums.phpfreaks.com/topic/241519-updating-specific-values-in-a-column/
Share on other sites

You say they change in the database so the query works.

 

Most likely is just your browser cache, page cache, or query cache.

 

Restart the server and clear your browser cache too.

Thanks for the response. Yeah, I restarted the web servers, cleared my cache, and tried different browsers. I still see "Unknown." in the req field.

 

Any other suggestions? Is there a way to force the update?

I don't know what system you use, possible your own just saving pages into a folder related to urls.

 

Depending on what your cached server pages expire times are set to, they should really overwrite in a short time anyway.

 

If just want them gone now, Delete the cached pages.

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.