02.12.2016, 06:08
<?php
$koneksi = new PDO("mysql:host=localhost;dbname=ccnr", "username", "password");
function go($location, $alert)
{
echo "<script>window.alert('".$alert."')</script>";
echo "<meta http-equiv=\"refresh\" content=\"0;URL=".$location."\"><center>";
return 1;
}
You need to change the bold/itil stuff to your database info
$koneksi = new PDO("mysql:host=localhost;dbname=ccnr", "username", "password");
function go($location, $alert)
{
echo "<script>window.alert('".$alert."')</script>";
echo "<meta http-equiv=\"refresh\" content=\"0;URL=".$location."\"><center>";
return 1;
}
You need to change the bold/itil stuff to your database info