Guest User

Untitled

a guest
Apr 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $insert = "INSERT INTO table_name (`field_name`) VALUES ('value')";
  2. $db_ins=$obj->insert($insert);
  3. $inserted_id = mysql_insert_id();
  4.  
  5. //update
  6.  
  7. $update = "UPDATE `table_name` SET `field_name` = 'value' WHERE `id` = '".$_GET['id']."'";
  8.  
  9. $db_updatepage=$obj->edit($update);
Add Comment
Please, Sign In to add comment