html { background: url(background.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
html { background: url(background.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
SELECT COUNT (id) FROM items |
SELECT item_name FROM items LIMIT 20, 100. |
SELECT VERSION (); |
SELECT NOW(); -- Display only current date SELECT CURRENT_DATE(); |
mysql ; mysql mysql.out |
$handle = fopen("BooksList.csv", "r"); while (($data = fgetcsv($handle)) !== FALSE) { $num = count($data); $row; echo "INSERT into importing(text,number)values('$data[0]','$data[1]')"; echo "<br>"; }
$handle = fopen("BooksList.csv", "r"); $fields=array('category','datatype','date','value'); $table='test'; $sql_query = "INSERT INTO $table(". implode(',',$fields) .") VALUES("; while (($data = fgetcsv($handle)) !== FALSE) { foreach($data as $key=>$value) { $data[$key] = "'" . addslashes($value) . "'"; } $rows[] = implode(",",$data); } $sql_query .= implode("),(", $rows); $sql_query .= ")"; echo $sql_query;
Create Function :
function ipInfo($ip) { if(isset($ip)) { $data = unserialize(file_get_contents('http://www.geoplugin.net/php.gp?ip='.$ip)); if($data['geoplugin_status'] == '200') { return $data; } else { echo "Bad request!, Error code is ".$data['geoplugin_status']; } } else { echo "IP is not set!"; } }
Result :
|
window.onbeforeunload = function () { alert("Do you really want to close?"); };</script>
add_action( 'admin_enqueue_scripts', 'my_color_picker_function' );
Add JS file :
<script type="text/javascript">
jQuery(document).ready(function($){
$('.color-picker').wpColorPicker();
});
</script>
<input type="text" class="color-picker" name="overlay_color" value="#EEE" data-default-color="#effeff" />
|