Guest User

Untitled

a guest
Aug 15th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. $user= $_POST['usr'];
  4. $pass= $_POST['pass'];
  5. $email= $_POST['eml'];
  6. $id= $_POST['mid'];
  7. global $wpdb;
  8. $subs = array('Username' => $user ,'Password' => $pass);
  9. $johnny=array( ‘ID’ => 15 ) ;
  10. $table_name='patient_info';
  11. $result=$wpdb->update($table_name, $subs, $johnny);
  12. //$result=mysqli_query($update_price);
  13. if($result)
  14. {
  15. echo "query working";
  16. }
  17. else
  18. {
  19. echo "query not working";
  20. }
  21.  
  22. ?>
Add Comment
Please, Sign In to add comment