Friday, 7 June 2013

$wpdb->update Issue

$wpdb->update Issue

Can anyone see what I have wrong here?
$wpdb->update(
    $table,
     array(
        'lat'=>$paper_lat,
        'lon'=>$paper_lon
    ),
    array(
        'id'=> $result=>id
    ),
    array(
        '%d',
        '%d'
    ),
    array('%d')
);
This gives me a white screen. As far as I can tell I have the format correct according the the codex but it is giving me fits. I am sure that it is something simple but if someone would point it out to me I would greatly appreciate it.

No comments:

Post a Comment