Im trying to get the Var Dump to display but all i get is a white screen. Any suggestions?
<?php
require('includes/config.inc.php');
require(MYSQL);
$aid = FALSE;
if (isset($_GET['aid']) && filter_var($_GET['aid'], FILTER_VALIDATE_INT, array('min_range' => 0))){
$aid = $_GET['aid'];
$q = "SELECT aircraft_id, aircraft_name AS name, aircraft_type AS type, tail_number AS tn FROM aircraft WHERE aircraft_id=$aid";
var_dump($q); die();
}
error_reportingtoE_ALL, so you can find your problemMYSQLconstant in your config.inc.php script? Is that config script readable? Either of the requires will kill the script if they fail, and with you undoubtedly having display_errors/error_reporting turned off, you'll never see why. NEVER have those two options turned off while debugging/developing. It's like trying to read a book with your eyes ripped out.ifcondition istrue?ifcondition is not being executed.