Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About djohnstone

  • Rank
  1. Really appreciate everyone's help with this. This was not my code, but had trouble trying to get my head around what the previous developer did. Great site!
  2. Hi Mac, I have tried that and it's still not displaying any errors. The phpinfo(); statement worked. Really appreciate everyone's help. I even added this code to the top of my PHP file as suggested by other online articles and restarted the apache2 server using sudo service apache2 restart ini_set('display_errors', '1'); ini_set('display_startup_errors', '1'); error_reporting(E_ALL); I starting to think it might be timing out due to overload on the DB? Is that possible? It's using an jQuery 3.2 AJAX request which calls the above backend code. PHP is not my strong point,
  3. Thank you for your help. Really appreciate it. The PHP error logs are clean, which is strange. I receive in the browser "The service is temporarily unavailable. Please try again later." which has a status code of 500 in Chrome.
  4. I am very new to PHP and have tried various techniques but I am getting a 500 error when clicking on the export button to download a csv report. I'm not sure why the previous developer did it this way. Is there a better why in PHP to make this code better? Willing to understand and learn from an PHP expert. The database is MYSQL. $coursefilterid = $_GET['course']; $conn = new mysqli($host, $username, $password, $database); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); }
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.