PHP mysql query is not executing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JnrJnr
    New Member
    • Oct 2009
    • 88

    PHP mysql query is not executing

    All other mysql queries execute except this one:
    Code:
    $setcurrent = mysqli_query("UPDATE blog SET currentblog = (id = '55')") or die('Error, failed to set current blog');
    Can anyone help me with this?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    that’s not a mysql query, that’s a mysqli query and as you can see in the manual, the function call differs.

    besides that, turn error reporting and error display on when debugging.

    Comment

    Working...