$wpdb->update not working
-
This is a small part of a plugin I am working on that adds some user input to the DB.
The following is not working at all:
<?php if($_POST['submit']) { global $wpdb; $preek_naam = $_POST['preek_naam']; $preek_gemeente = $_POST['preek_gemeente']; $preek_teks = $_POST['preek_teks']; $wpdb->update('bible_afri', array('preke' => $preek_teks), array('index' => 1), array('%s')); }
but if I replace
array('preke' => $preek_teks)
witharray(‘preke’ => “some text here”)` it loads it into the DB!
I have no idea why.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘$wpdb->update not working’ is closed to new replies.