skyrank
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by skyrank
-
-
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
Database content not displaying after deleting login code
in PHP Coding Help
Posted
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]