Jacob: Skrev dette
<?php
include("cp/config.php");
if(!get_magic_quotes_gpc()){
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}else{
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
echo "inject";
$day = $_GET['day'];
$month = $_GET['month'];
$year = $_GET['year'];
echo "vars";
$Q = mysql_query("SELECT * FROM `events` WHERE (`day` = '$day' AND `month` = '$month' AND `year` = '$year') ORDER BY `event_id` DESC");
while ($D = mysql_fetch_array($Q)){
echo "while, php";
?>
while, html<br />
<div id="event_wrap">
<div id="event_overskrift"><?php echo $D['title']; ?></div>
<div id="event_detaljer">
<?php echo "den $day - $month - $year<br />"; ?>
Sted: <?php echo $D['location']; ?><br />
<?php echo $D['event']; ?>
</div>
</div>
<?php
}
?>
... Den nåede til "vars"....
Det tyder på at den ikke får noget fra mysql databasen....
Gnu: har kørt det samme script i phpmyadmin, hvor jeg får et output...