0

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.

  • 1
    Add debugging information please. – s_ha_dum Jun 7 '13 at 16:29
  • 1
    You might want to turn on debugging to avoid that white screen. It makes life much easier. – vancoder Jun 7 '13 at 16:29
1
array(
    'id'=> $result=>id
), 

should be

array(
    'id'=> $result->id
), 

I suspect that's your white screen issue.

  • I knew it was something simple like that. I looked and looked but couldn't see it. Thanks! – user25860 Jun 7 '13 at 18:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy