skyrank Posted August 3, 2010 Share Posted August 3, 2010 Hello - I'm opening my website up to visitors for free, and trying to bypass a login screen to go straight into the data content that was appearing after a user logged in. I have an index.php file that included the following code at the beginning: <?php session_start(); include("database.php"); include("login.php"); include("/vservers/skyranks/db_connect.php"); ?> <?header("Cache-control: private"); ?> <html> I deleted the "include("login.php"); line, and was successful at bypassing the username and login screen. However, the page that is supposed to display the data content is incomplete. In fact, it only displays my company's logo. Any ideas as to why the data content is not showing up? Thank you for any help with this, as my php is quite novice at this point. Regards - Joe Quote Link to comment https://forums.phpfreaks.com/topic/209632-database-content-not-displaying-after-deleting-login-code/ Share on other sites More sharing options...
sspoke Posted August 3, 2010 Share Posted August 3, 2010 Your question is poorly written hardly no one can actually help you due to the fact no code is presented from login.php so we don't know what login.php actually did to make the data appear.. yup it's impossible but i'd wing it and say it's a session problem Quote Link to comment https://forums.phpfreaks.com/topic/209632-database-content-not-displaying-after-deleting-login-code/#findComment-1094466 Share on other sites More sharing options...
skyrank Posted August 3, 2010 Author Share Posted August 3, 2010 Thanks for your reply. I apologize for not providing sufficient information. Please find two files attached for your review: 1) index.php 2) login.php Recall, I have deleted the command: 'include("login.php");' from the index.php file. That command was written directly after the 'include("database.php");' command which is also in the index.php file. Prior to deleting this command, a username and password screen appeared, and if correct subscribers' variables were inputted in the username and password, the user would be directed to index.php and data content from my MYSQL database appeared. But, now, just the logo is appearing. You can see how that webpage looks here: www.skyranksystem.com/DataRatings/index.php I hope this is more helpful. And thank you so much for any assistance!! Joe [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/209632-database-content-not-displaying-after-deleting-login-code/#findComment-1094560 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.