| | |
logging in problem
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2006
Posts: 90
Reputation:
Solved Threads: 0
Hi,
I'm trying to create a little web page but when i try to log in using the username and password i put in MySQL database it doesn't do anything at all.which is when i click login it just goes blank. I don't know why this is. Could you please take a look at my login.php and login_check.php code that i have attached to this mail to see if I did anything wrong or I didn't put something. I'm using php and MySQL. Thank you
I'm trying to create a little web page but when i try to log in using the username and password i put in MySQL database it doesn't do anything at all.which is when i click login it just goes blank. I don't know why this is. Could you please take a look at my login.php and login_check.php code that i have attached to this mail to see if I did anything wrong or I didn't put something. I'm using php and MySQL. Thank you
Since you are using classes in your script, its kinda difficult to make out what it does. (fetch_GET, fetch_POST, authenticator, etc. ). The best way to debug your code would be to print or echo messages to check the flow of your script. You can use print_r($_POST) in login_check.php to see if all the variables are posted properly. You can echo your sql statements( i dont see any!) and execute it to see if it returns a resultset. You can use die function to get mysql error message. And also, check for 'unwanted' exit keyword.
Cheers,
Naveen
Cheers,
Naveen
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Oct 2006
Posts: 90
Reputation:
Solved Threads: 0
hi,
to be honest. I'm a beginner at php and someone actually helped me out with that code (wrote it for me, but the person is unavailable now) . As someone who doesn't really know programming, what do you think i can do with the code for it to work. Is it possible to tell me what to type down in my code.. Any help would be really appreciated. thank you.
to be honest. I'm a beginner at php and someone actually helped me out with that code (wrote it for me, but the person is unavailable now) . As someone who doesn't really know programming, what do you think i can do with the code for it to work. Is it possible to tell me what to type down in my code.. Any help would be really appreciated. thank you.
hmm.. Since you are a beginner, I dont think you will understand OOPS concepts if you have no idea about it. You can either start learning OOPS concepts like classes, objects, then make your code work OR wait for the one who helped you create this code to make it work OR create a new login page from the scratch.
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
•
•
and if i may add. when i type in the username and password and click on login it. It takes me to localhost/capat/login_check.php and then just produces this
?>
does this help in anyway?
?> ? I guess you have php ending tags somewhere in your html. Anyways, All the best..
Ignorance is definitely not bliss!
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Jan 2008
Posts: 57
Reputation:
Solved Threads: 5
•
•
•
•
ok may be i'll try and create a new login in page from scratch.thank you for your time
If you're looking for a resource to learn php, check out Practical PHP Programming. It's a great, free book - the same one I used to learn a while back.
Good luck,
- Walkere
![]() |
Similar Threads
- Microsoft Internet Explorer problem when logging on (Web Browsers)
- Need Help for DNS Problem and 'about:blank' Problem ... (Viruses, Spyware and other Nasties)
- Bridge.dll error message when logging in Windows (Viruses, Spyware and other Nasties)
- internet explorer connection problem (Web Browsers)
- Problem With installing Sagem 800 Modem (Windows NT / 2000 / XP)
- annoying END NOW boxes when logging off XP (Windows NT / 2000 / XP)
- Unusual problem - Desktop getting backed up to network server.... (Windows 95 / 98 / Me)
- W2003S Web Share accessing problem (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: Malicious website attacks and how to counter them?
- Next Thread: uploading files
| Thread Tools | Search this Thread |
# 5.2.10 action address apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display dissertation domain dynamic echo echo$_get[x]changingitintovariable... email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image images include insert ip javascript joomla legislation limit link load login mail masterthesis menu mlm multiple mysql mysqlquery oop open paypal pdf persist php popup problem query radio random record recursion remote script search server sessions sms sockets source space sql syntax system table tutorial update upload url validator variable video web youtube






