6
APPROVED PROJECTS
[wpdatatable id=1]
Test
[insert_php]
$servername = “mysql.arr.sigov.si”;
$username = “admin”;
$password = “admin375xa”;
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die(“Connection failed: ” . $conn->connect_error);
}
echo “Test 123”;
$sql = “SELECT * FROM wp_test”;
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo “id: ” . $row[“id”]. ” – Name: ” . $row[“first”]. ” ” . $row[“last”]. ”
“;
}
} else {
echo “0 results”;
}
$conn->close();
[/insert_php]