include_once('../blog/dbcon.php'); include_once('.../blog/dbcon.php'); $timezone = 1; setlocale(LC_TIME, 'nl_NL'); # connect to mysql database if(!$link = mysqli_connect($mysql_host, $mysql_user, $mysql_pass)){ echo 'Kan geen verbinding maken met de database!'; } # use database if(!mysqli_select_db($link, $mysql_database)){ echo "Database niet gevonden"; die(); } $url = mysqli_real_escape_string($link, $_GET['url']); $query2 = mysqli_query($link, "SELECT * FROM blog WHERE url = '{$url}' "); # if article not found then go back to aritcles list page if(mysqli_num_rows($query2) == 0){ } else{ $row2 = mysqli_fetch_assoc($query2); $titel = $row2['titel'] . " - "; } ?>