Why this code is not working:
$bdd->prepare("UPDATE `articulos` SET `telVisto` = `telVisto` + 1 WHERE `ID` ='".$_GET['id']."' ");
I'm using a PDO conection that works good because it works good with other queries. Here is my data base conection:
$pdo_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION;
$bdd = new PDO('mysql:host=localhost;dbname=lacajota', 'root', '', $pdo_options);
And yes I want to update telVisto incrementing 1 for each time the code is run.
Thank you
