خرید بک لینک

Vote count: 0

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

asked 25 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 13 تير 1395 ساعت: 8:04

صفحه بندی