Jump to content

Mysql Set +?


whiteboikyle

Recommended Posts

okay well i am trying to make a mysql get the users rank and -3.. is there a way to do it using mysql?

 

like i tried

`rank`=`rank`-3  but it didn't work..

also how do i make it SET 2 different things.. Here is my full mysql

UPDATE `members` SET `disabled` = '0' and `rank` = `rank-3 WHERE username = 'test'

 

but the `rank` never updates?

 

anyways.. thanks in advanced

Link to comment
https://forums.phpfreaks.com/topic/113823-mysql-set/
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.