<?php
$servername = “localhost”;
$username = “valasan”;
$password = “10258723”;
// Create connection
$link = new mysqli($servername, $username, $password);
<?php
$servername = “localhost”;
$username = “valasan”;
$password = “10258723”;
// Create connection
$link = new mysqli($servername, $username, $password);
The SELECT statement is used to select data from one or more tables:
SELECT column_name(s) FROM table_name
or we can use the * character to select ALL columns from a table:
SELECT * FROM table_name
<?php
function GeraHash($qtd){
//Under the string $Caracteres you write all the characters you want to be used to randomly //generate the code.
$Caracteres = ‘ABCDEFGHIJKLMOPQRSTUVXWYZ0123456789’;
$QuantidadeCaracteres = strlen($Caracteres);
$QuantidadeCaracteres–;
html { height:auto; min-height:100%;
filter: url(“data:image/svg+xml;utf8,<svg xmlns=\’/svg\’><filter id=\’grayscale\’><feColorMatrix type=\’matrix\’ values=\’0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\’/></filter></svg>#grayscale”);
filter: gray;
-webkit-filter: grayscale(1);
}
นำ code file ด้านล่าง ไปเพิ่ม ใน css/template.css ที่เราใช้งานอยู่
img {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
html {
-webkit-filter: grayscale(100%);
}
เสร็จแล้ว Save file
wordpress เข้าไปแก้ใน Theme ที่ใช้งาน เสร็จแล้ว เลือก themes–>editor–>style.css
แล้วเพิ่ม code ดังต่อไปนี้ ลงด้านล่างสุด แล้ว save file
img {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
html {
-webkit-filter: grayscale(100%);
}
code show macaddress php
<?
// Turn on output buffering
ob_start();
//Get the ipconfig details using system commond
system(‘ipconfig /all’);
// Capture the output into a variable
$mycomsys=ob_get_contents();
// Clean (erase) the output buffer
ob_clean();
$find_mac = “Physical”;
//find the “Physical” & Find the position of Physical text
$pmac = strpos($mycomsys, $find_mac);
// Get Physical Address
$macaddress=substr($mycomsys,($pmac+36),17);
//Display Mac Address
echo $macaddress;
?>
ok work
sudo apt-get purge --auto-remove syslog-ng
PHP Redirect – Header Location
<?php
if (! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off' ) {
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header("Location: $redirect_url");
exit();
}
?>