<?
include("config.php");
$id = $_GET['id'];
$username = $_GET['username'];
$type = $_GET['type'];
$result = mysql_query("INSERT INTO `logdb`.`devlogs` (`userid`, `username`, `type`, `timestamp`) VALUES ('" . $id . "', '" . $username . "', '" . type . "', '" . date("Y-m-d H:i:s") . "')");
if (!$result) {
die('Invalid query: ' . mysql_error());
}
?>
Trying with this URL but getting a blank page: mysite/devlog.php?userid=1&username=foo&type=join