Skip to content

Commit

Permalink
Update mysql-commands (+Wordpress).php
Browse files Browse the repository at this point in the history
  • Loading branch information
ttodua authored Jan 22, 2020
1 parent 643d445 commit 098faa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql-commands (+Wordpress).php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
$MANUAL->query("INSERT INTO my_tablename (content1, content2, userid) VALUES ('$value1', '$value2','$useriid')");


//////Method 2 (only for wordpress, sanitized)////// (check Updates:::: https://github.com/tazotodua/useful-php-scripts/blob/master/mysql-commands%20%28%2BWordpress%29.php )
//////Method 2 (only for wordpress, sanitized)////// (check Updates:::: https://github.com/ttodua/useful-php-scripts/blob/master/mysql-commands%20%28%2BWordpress%29.php )
public function UPDATE_OR_INSERT($tablename, $NewArray, $WhereArray=array()){ global $wpdb;
$array_for_check = !empty($WhereArray) ? $WhereArray : $NewArray;
$arrayNames= array_keys($array_for_check);
Expand Down

0 comments on commit 098faa6

Please sign in to comment.