MySQL in PHP Questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yuvaly
    New Member
    • Feb 2008
    • 6

    MySQL in PHP Questions

    I am trying to write a Data Abstraction Layer Using MDB2 for this.
    I have tried using prepared statements , but they didn't return the number of affected rows :(the update was executed successfully - tyhe valus in the table changed, but the "execute" always returned 0.

    Anybody knows something about this?

    Thanks
    Yuval
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Where is the PHP question in this?

    Please see how to ask a question and follow these guidelines when posting questions as submitting clear and concise questions allows those reading to understand your problem and respond more easily.

    MODERATOR

    Comment

    • yuvaly
      New Member
      • Feb 2008
      • 6

      #3
      MDB2 is a php library...
      my code is :
      $statement=$db->prepare("UPDAT E TABLE_! SET COL1=? WHERE VAL1 =?",array("inte ger","integer") ,MDB2_PREPARE_M ANIP);
      $result=$statem ent->execute(array( 1,2));

      $result's value is 0, akthough the table WAS updated.

      Comment

      Working...