$wpdb->update problemer

Når jeg bruger $wpdb->update kommer denne fejl: “Warning: shell_exec() has been disabled for security reasons”. Mulig løsning: brug en $wpdb->query?

Sv. – Ja, Occams barberblad slår til igen:

$sql = "UPDATE `MYtABLE` SET `Id`='6',`Date`='2013-02-18',`KbnProjects_Id`='456',`KbnNotes_Id`='456',`KbnStates_Id`='456' WHERE `Id`=6";
$wpdb->query($sql);

Published by

Per Thykjaer Jensen

I am a Senior Lecturer in front- and backend web programming at the Multimedia Design and Communication Programme at Business Academy Aaarhus.

I speak several languages: PHP, Python, MySQL, JavaScript, Nodejs, HTML, CSS, and … Danish.

Background: MA it, interaction and multimedia – MA Literature history – BA Art History.