This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function tattoo_submit() { | |
| if (isset($_POST["addtattoo"])) { | |
| $title = "Tattoo : ". $_POST["tatooInput"]; | |
| $my_post = array( | |
| 'post_title' => $title, | |
| 'post_status' => 'publish', | |
| 'post_author' => 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELETE FROM tablename | |
| WHERE id IN (SELECT id | |
| FROM (SELECT id, | |
| ROW_NUMBER() OVER (partition BY column1, column2 ORDER BY id) AS rnum | |
| FROM tablename) t | |
| WHERE t.rnum > 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT * FROM tablename | |
| WHERE id IN (SELECT id | |
| FROM (SELECT id, | |
| ROW_NUMBER() OVER (partition BY column1, column2 ORDER BY id) AS rnum | |
| FROM tablename) t | |
| WHERE t.rnum > 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ps -ef | grep 'proccess name' | awk '{print $2}' | xargs -r kill |