Guest User

Untitled

a guest
Jan 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. db.execSQL("INSERT INTO MYTABLE VALUES('','"+name+"',NOW());");
  2.  
  3. if($result)
  4. echo 'success';
  5. else
  6. echo 'not inserted';
  7.  
  8. try {
  9. db.execSQL("INSERT INTO MYTABLE VALUES('','"+name+"',NOW());");
  10. } catch (SQLException e) {
  11. ...deal with error
  12. }
Add Comment
Please, Sign In to add comment