Hi, sorry if this has been covered elsewhere, I have looked but cant find anything on this that i actually comprehend.
$modx->db->insert etc is no longer available, thats fine but how do i do it in revo?
I tried this but with no success:
$sql = "INSERT INTO pfu_industries (title,display) VALUES ($industry,0)";
$stmt = $this->modx->prepare($sql);
return $stmt->execute();
this works fine for a select query though once i added:
return $stmt->FetchAll(PDO::FETCH_ASSOC);
Any help would be REALLY appreciated, deadline is tomorrow
Cheers
Ash