It is telling me that my email address or password did not match asks me if I want to go back to the login page and displays a link just above the login page text fields. If I press the link it basically refreshes the login page.
I just fixed that. I am on hold for a little on my trip while xrays are being done.
I did find one thing, but, am playing with it now… LOL, be patient…
Thanks again for all your help. What is the proper function to redirect to a page as opposed to the header template? When I sign in, I am redirected to a template and not a profile template, so I can make a profile. Currently, this is what I have:
[php] // User is logged in, now switch to the live site…
header(“Location: profile.php”); // This would be the next page, I used home.php as sample
} else {
echo “
”; //just to make it easier to read…
echo “Your email address or password did not match our records!
”;
echo “If you wish to try again enter your info below:”;[/php]
Okay, for those following us… The main error was that we were not querying the database correctly.
Normally, you do it in this process…
Open a connection to the database.
Select database name.
Create a query.
Execute the query.
Pull the results into an array using
fetch_array or fetch_assoc depending on what you need for data.
Use your data…
We were counting the results from the query before we pulled the results. All fixed now…
So, Dee, this line:
header(“Location: profile.php”);
Tells the code that to switch to a page called “profile.php” which I thought was where you wanted to go.
So, you can basically, just change that page to another one. NOTE: if the page is not in the same folder as
the page that calls it, you can use “foldername/filename.php” to look inside a folder. If the file you want to
reach is in a folder “above” the current folder, you can back up one level : “…/foldername/filename.php”…
Hope that makes sense and hope it helps! If not, ask away!