Guest User

Untitled

a guest
Nov 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. $connection = new PDO('mysql:dbname=XXXXXXXXX;host=XXXXXXXX', 'XXXXXXXX', 'XXXXXXXX');
  2. $query = 'insert into `test` (test) VALUES (1) on duplicate key update test=1';
  3. $connection->exec($query);
Add Comment
Please, Sign In to add comment