hey man! thanks for the tutorial. The script is working but i keep getting this error on the login.php page:
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /website/login.php:15) in /website/login.php on line 17
Hey Javed Ur Rehman at time of login it is showing…” Notice: Undefined index: password in C:\wamp\www\try\login.php on line 17″
and also…”Username/password is incorrect” at same time help me plzz
Undefined index error comes only when value is not passed to variable, did you removed isset check? in my code isset check if form submitted then pass value to variable.
You can not upload PDF file in MySQL, but you can save PDF file name in MySQL so for this check out my this tutorial https://htmlcssphptutorial.wordpress.com/2015/07/31/upload-file-using-php-and-save-in-folder/
and view PDF file depends upon browser setting and your system download manager.
You can check the same PDF file link in different browser so you will see that not all browser direct download file (if not describe in settings).
Javed,
Yes, very nice simple clean registration with login tut & code. Will you be adding any updates to the project? If yes, I would be happy to give you my thoughts.
Reblogged this on Dinesh Ram Kali..
LikeLike
Pingback: Insert, View, Edit and Delete Record from Database Using PHP and Mysql | HTML CSS PHP Tutorials
Pingback: Allow Only Logged in Users to View Files | HTML CSS PHP Tutorials
hey man! thanks for the tutorial. The script is working but i keep getting this error on the login.php page:
Warning: session_start(): Cannot send session cache limiter – headers already sent (output started at /website/login.php:15) in /website/login.php on line 17
LikeLike
Sebastian sorry for late reply, but i think this problem is due to PHP old verson, make sure you are using version more than 5, but for right now, you can try to start session on your login page, this might help you.
You can also look on this answer http://stackoverflow.com/questions/8812754/cannot-send-session-cache-limiter-headers-already-sent
LikeLike
Hey Javed Ur Rehman at time of login it is showing…” Notice: Undefined index: password in C:\wamp\www\try\login.php on line 17″
and also…”Username/password is incorrect” at same time help me plzz
LikeLike
Undefined index error comes only when value is not passed to variable, did you removed isset check? in my code isset check if form submitted then pass value to variable.
LikeLike
Hi Javed, i am looking at integrating social login with this user registration code. Do you have code for this?
LikeLiked by 1 person
I did not write any tutorial about it, i hope you can find this tutorial via Google 🙂
LikeLike
There are a lot of tutorials on internet but i find your way of explaination is very easy to understand and make it look simple.
LikeLiked by 1 person
Thanks glad to hear that you liked my tutorial 🙂
LikeLike
Jawed Bhai … pdf file ko mysql me upload aur view kaise kare…
(view usi browser me ho jaaye matlab download naa ho)
i m waiting ur response
LikeLike
You can not upload PDF file in MySQL, but you can save PDF file name in MySQL so for this check out my this tutorial https://htmlcssphptutorial.wordpress.com/2015/07/31/upload-file-using-php-and-save-in-folder/
and view PDF file depends upon browser setting and your system download manager.
You can check the same PDF file link in different browser so you will see that not all browser direct download file (if not describe in settings).
If you want to upload file and view your uploaded file so my this tutorial will help you. You just need to look into how to view data from MySQL and you can use it for your PDF File name.
https://htmlcssphptutorial.wordpress.com/2015/07/27/insert-view-edit-and-delete-record-from-database-using-php-and-mysql/
Another tutorial about view PDF can help you, https://htmlcssphptutorial.wordpress.com/2015/08/13/allow-only-logged-in-users-to-view-files/
Hope this help you.
LikeLike
This tutorial is really great! Thank you so much and God bless! 😀
LikeLike
Javed,
Yes, very nice simple clean registration with login tut & code. Will you be adding any updates to the project? If yes, I would be happy to give you my thoughts.
Thanks for such a nice offer.
Alex
LikeLike
Dear Alex,
This tutorial was made only for the basic concept for new developers so i will not add any other feature in it, although i have wrote another tutorial https://htmlcssphptutorial.wordpress.com/2015/07/27/insert-view-edit-and-delete-record-from-database-using-php-and-mysql/
which is next part of this tutorial.
Thanks
LikeLike
Oh, such a great support tut for us all!!
Thank you and best to your future, you will do fantastic!!
Alex
LikeLike
nice post
LikeLike
One of the best tutorial for beginners what i ever saw 🙂 Thanks!
LikeLike