Jump to content

quick ? about UPDATE


xcandiottix

Recommended Posts

I'm looking to take a number in column A of my table and increase it by one when a button is pressed. I tried using UPDATE in dreamweaver but the text doest change color as if it is a recognized line of code. Also, when I upload to the server the code just doesn't seem to do anything. Any thoughts?

Link to comment
https://forums.phpfreaks.com/topic/195517-quick-about-update/
Share on other sites

yeah.... nevermind.  :P

 

Here's working update code incase someone needs it:

mysql_query("UPDATE tablename SET columnname = 'whatever'

WHERE columnname2 = 'however'");

 

Table tablename will look in column columnname2 for however ... anywhere it finds however it will replace the value of column columnname to whatever.

Link to comment
https://forums.phpfreaks.com/topic/195517-quick-about-update/#findComment-1027395
Share on other sites

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.