WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

How to increase search traffic organically

sanjay123

New member

0

0%

Status

Offline

Posts

49

Likes

0

Rep

0

Bits

255

3

Months of Service

0%
Friends, I am transitioning my site from MySQL to PDO. There was a convenient usage in MySQL like this: $result = mysql_query("UPDATE members SET views = views + 1 WHERE member_id = '$replying_member_id'"); However, the same format does not work in PDO. Instead of retrieving the 'views' data separately, incrementing it, and then using it in the update query, does anyone know how I can handle it in PDO in a single line?
 

249

6,622

6,642

Top