I have ubuntu server 14.04 installed along side Apache, PHP5 and MySQL server all together. I can gain access to the server using putty and the mysql database using Heidi Sql remotely.
On my laptop, using xampp to write and read from the database on the server works perfectly fine using PHP, but when the same code on the server is ran nothing happens the code stops at $connect = mysql_connect($host,$user,$pass) or die('Connection error');
After the code is run off the server the page remains blank and does not even show the Connection Error
message in the die section.
Note: Apache, PHP and MySQL works fines because all my web pages are in PHP.
$host
variable tolocalhost
when you run it from the server? To show error messages, add this line before the$connect
part:ini_set('display_errors',1);
. Run the code again and include any error messages here. – Parto Jun 16 '14 at 21:02