I'm using CodeIgniter in my application, what I need to do is the following I have in my database a field with stock name, this field is integer value, I need to do the following when I hold a sale it will have to decrease the amount of my sale of that field in PHP would be something like this.
$sql = mysql_query( sprintf( “UPDATE profile_posts SET cliks = cliks + 1 WHERE id = %d” , $id ) )
or die( mysql_error( ) );
There is some CodeIgniter feature that I can do this or I will have to do a specific SQL for this: