I keep getting an error 500 when i try to run my php script. I looked in the log and it reads this. 17-Aug-2012 22:35:59] PHP Fatal error: require() [function.require]: Failed opening required ‘MYSQL’ (include_path=’.:/usr/lib64/php:/usr/lib/php:/usr/share/pear’) in /home5/virtua15/public_html/gatewayaviation/aircraft_list.php on line 3
Below are lines one though five of my script
<?php
require('http://gatewayaviation.virtual-aviation.org/includes/config.inc.php');
require (MYSQL);
$q = "SELECT CONCAT(aircraft_name, tail_number) AS aircraft, aircraft_type AS at, location AS loc, FROM aircraft GROUP BY location ORDER BY tail_number ASC";
$r = mysqli_query($dbc, $q);
What is the reasoning behind this. I have been using this same codeing for many of the other pages in the project im working on and there have been no issues. Can you shed some light on this?
I actully figured out the problem with this code. I had put a comma after the loc in the SQL query and that broke the script. It is all fixed now.