Jump to content

Adding integer using php/mysql wrapper


katlis

Recommended Posts

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

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.