I use the same code and just change the table that i check and it works fine. I am new to this can some help. Do i need to have the password and userid located at a certain poition in the sql table?
You know... You're not so smart. Do you need me to educate you?
If you say, "please," (and do so, nicely) then I will show you where you're dead wrong.
Normally php outputs during processing, so the starts receiving the page while the script is still running.
The ob functions control buffering of output. With ob started php outputs everything to a buffer. Only when the php has finished processing (or if the buffer is explicitly flushed) does the user start receiving the page.
The added code means that your header calls (which aren't buffered) are being sent to the client before they receive any output.
David Walker Software Engineer
- C++ guru
- C# guru
- PHP guru
- Testing guru Theatatrical Tech
- Sound Engineer
- Lighting Designer
- Stage manager
This is what the code looks like now when i execute it displays the header for the incorret password but when i input a user email and password it redisplays the same thing.
<?
ob_start();
session_start();
include("dbblsr.php");
Then i try this notice that it has a different db and this db does not include the table i am trying to check but it still got to the incorrect header location
<?
ob_start();
session_start();
include("db.php");
you still havn't used the forums [php] and [/php] tags around your code, which means that it's far harder to spot errors, so I'm gonna wait for that, like I waited for you to do it earlier with your first post.
Bookmarks