I'm currently making a Control Panel for my infamous Minecraft Voting System - however am running into a problem. My code works fine on XAMPP - however is not working on my webserver.
I have two pages. One is a login page, and one is an index. The login page simply gets the user info for a SQL database, and checks it, which logs the user in, and redirects using a html meta refresh, as the webserver wasn't allowing PHP headers to be used.
The index page simply says "Welcome $user,". All of this works like a charm on XAMPP, however is not working so great on my webserver. As this error crops up when logging in:
Warning: Cannot modify header information - headers already sent by (output started at /home/linkycra/public_html/MonlotronCP/login.php:3) in /home/linkycra/public_html/MonlotronCP/login.php on line 136
Here is the login.php code - http://puu.sh/1IrEu.png
Here is the index.php code - http://puu.sh/1IrF1.png
Thank you!