WordPress.org

Forums

wpdb update (3 posts)

  1. lieutenantdan
    Member
    Posted 3 years ago #

    Everytime I try and use the wpdb update it never works but doesn't throw any errors...

    $wpdb->update("wpjb_job",
    				  array('confidential' => $value),
    				  array('id' => $this->getObject()->getId())					  );

    this is the 'error' i get.. Image

    and yes, those are the correct table names and everything.

    I've even been able to use the same sql statement in phpmyadmin and it will execute perfectly.

  2. ianhaycox
    Member
    Posted 3 years ago #

    Maybe you need to cast the 'id' to an int so it doesn't get quoted ?

  3. lieutenantdan
    Member
    Posted 3 years ago #

    Still nothing =/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.