Wow I have to say its been a long time since I posted here but I do need alittle help
so here we go:
I got this script or created most of it (I dont remember) for me to connect mysql using PDO. The script works fine exept when i try to update a column in my db. now i get no errors but it does not update.
$superglobals = array($_POST);
foreach ($superglobals as $value){
foreach ($value as $k => $v){
$post[$k]=$v;
}
}
$sql = "UPDATE ".DB_PREFIX."_dbase SET value = :value WHERE key = :key";
foreach ($post as $key => $value) {
$bind = array("value"=> $value, "key"=>$key); $db->execute($sql, $bind) or die($db->error()); }
I have upload the db class and gave you what im trying to do please help
Here is the database
CREATE TABLE db_dbase (
key text,
value text
)
database.php