katlis Posted March 4, 2009 Share Posted March 4, 2009 Hi there, I'm using the database class by ricocheting. Can't seem to figure out how to add a number to a field with this thing. I've tried... $data['pageviews'] = "pageviews +1"; $db->query_update("pages", $data, "pageurl='$entryid'"); ...among other things. My WHERE clause is correct. Any ideas? Thanks for the help. Link to comment https://forums.phpfreaks.com/topic/147987-adding-integer-using-phpmysql-wrapper/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.