Jump to content

Database content not displaying after deleting login code


skyrank

Recommended Posts

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.