Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $connection = new PDO('mysql:dbname=XXXXXXXXX;host=XXXXXXXX', 'XXXXXXXX', 'XXXXXXXX');
- $query = 'insert into `test` (test) VALUES (1) on duplicate key update test=1';
- $connection->exec($query);
Add Comment
Please, Sign In to add comment