Just something to think about and a good idea if you plan on using md5 encryption in your cms it's better to set the varchar limit to 32 since ALL md5 hashes are exactly 32 characters long. There is no point in allowing for more characters if you already know every every password in your database will be stored as 32 characters.
@026deathkiller I get the same problem, I'm trying to pinpoint the error. Should be withing the dologin.php something about the POST variables from login.php.
This code was written over a year ago, and I can only presume that the updated version of phpmysql is what is making it hard to follow. I have so far managed to work my way through a lot of it. By making alterations to the code but its not easy. A nice hint on here by PSTube1000 RE: removeing } echo { header('Location: index.php');, this has stopped me being redirected to the login page after I login, I now get a blank page, lol. But I am at least being directed to the index.php page. Ty pdj746
When I run this I get Warning:session_start() Can not send session cache limiter- headers already sent. I also get the message Logged In Welcome! so I quess that it logged in but what is causing this message?
Excellent Tutorials!! Is there a way to create tracking code within the database? I see where MySQL has some settings that produce something like this:
a href://yoursite.com/apage.php?lang=en-utf-8&token=8614aff5212c32c6ce4646496c93d
And then there would be some ID number at the end of this string(? not sure if I'm labeling this correctly) so it would look like this:<a ww.yoursite.com/apage.php?lang=en-utf-8&token=8614acfcff5212c32c6ce4646496c93d&CID=1253
Good tutorials and in your next one, instead of just writing the code, could you explain "what" the functions are doing instead of just writing the code and "why" you are using certain functions.
e.g Why and what are the benefits of using
mysql_fetch_array
instead of,
mysql_fetch_assoc
(you can explain what each does as you are talking)
I know there's php[.]net for reference but i think it makes more sense when we see it in action on a tutorial :)
Tip: when inserting the username, instead of making a new variable, you can insert it as "$_POST[username]" without the apostrophes around 'username' :)
Dude thanks for these tutorials, just at the right time as im creating a website for a clan im in and i dont want to have to update everything manualy.
sorry but your tut sucks, you are just writing code wtf! you need to explain what means that code
ThePetar911 2 weeks ago
please, explain a bit more:)
ThePetar911 2 weeks ago
thank you sooooooooooooooooooooooo much !!!!
kyandio74 1 month ago
Just something to think about and a good idea if you plan on using md5 encryption in your cms it's better to set the varchar limit to 32 since ALL md5 hashes are exactly 32 characters long. There is no point in allowing for more characters if you already know every every password in your database will be stored as 32 characters.
MrVPalumbo 1 month ago
Why do I get this error?
"Notice: A session had already been started - ignoring session_start()"
MrZynthetikk 5 months ago
It will be nice if you slow down a little.
mixsmike 6 months ago
is this safe cms code?
nnngggiii 7 months ago
Got a problem i cant figure out
i follwed your tut to the letter 3 times now and i still get stuk with the login page
im getting the result back
"Please check your login details!"
So far i cant figure out what the problem is
wanna help me out here
026deathkiller 8 months ago
@026deathkiller Nevermind Found the evil typo
026deathkiller 8 months ago
@026deathkiller where is the evil typo? I can't seem to find it.
lomlom123 8 months ago
@026deathkiller el problema es causado por copiar la carpeta includes. debes copiar el contenido de la carpeta.No la la carpeta en si.
miguelai1972 7 months ago
@026deathkiller I get the same problem, I'm trying to pinpoint the error. Should be withing the dologin.php something about the POST variables from login.php.
PedroSilvaStudios 2 months ago
Comment removed
PedroSilvaStudios 2 months ago
ffs the blue lights are lighting up on { and } what do i do :S
larkuto 9 months ago
This code was written over a year ago, and I can only presume that the updated version of phpmysql is what is making it hard to follow. I have so far managed to work my way through a lot of it. By making alterations to the code but its not easy. A nice hint on here by PSTube1000 RE: removeing } echo { header('Location: index.php');, this has stopped me being redirected to the login page after I login, I now get a blank page, lol. But I am at least being directed to the index.php page. Ty pdj746
Whisperingonthewind 10 months ago
Well, mine comes up with loads of errors, so this was a waste of time.
TheMrChugger 11 months ago
Your tutorial sucks man, before you start a tutorial please think by yourself what i'm going to do, how i'm gonna do that ect. ect.
indierockenroll 11 months ago
When I run this I get Warning:session_start() Can not send session cache limiter- headers already sent. I also get the message Logged In Welcome! so I quess that it logged in but what is causing this message?
MrTelekes 1 year ago 4
@MrTelekes you can fix this by putting the Session start code line on the top off your page
hope that works for you
026deathkiller 8 months ago
@MrTelekes you have to put the <?php
session_start();...
as the first lines of your code
zipmaill 5 months ago
@MrTelekes
Check session starts on the other admin files, such as index login and dologin.
PedroSilvaStudios 2 months ago
Comment removed
WheelTireFamily 1 year ago 4
Love these tutorials btw!! Really help :)
th3computeradmin 1 year ago
For whatever reason, my dologin.php is not working.
WISDOMandGRACE 1 year ago
Hey PBJ,
Excellent Tutorials!! Is there a way to create tracking code within the database? I see where MySQL has some settings that produce something like this:
a href://yoursite.com/apage.php?lang=en-utf-8&token=8614aff5212c32c6ce4646496c93d
And then there would be some ID number at the end of this string(? not sure if I'm labeling this correctly) so it would look like this:<a ww.yoursite.com/apage.php?lang=en-utf-8&token=8614acfcff5212c32c6ce4646496c93d&CID=1253
WISDOMandGRACE 1 year ago
Comment removed
Cornbane 1 year ago
Good tutorials and in your next one, instead of just writing the code, could you explain "what" the functions are doing instead of just writing the code and "why" you are using certain functions.
e.g Why and what are the benefits of using
mysql_fetch_array
instead of,
mysql_fetch_assoc
(you can explain what each does as you are talking)
I know there's php[.]net for reference but i think it makes more sense when we see it in action on a tutorial :)
76ers 1 year ago
Tip: when inserting the username, instead of making a new variable, you can insert it as "$_POST[username]" without the apostrophes around 'username' :)
Xylogeist 1 year ago
hey dude,
when is the next one gunna come out?
thetechall 1 year ago
Nice! Great tutorial as always Melvin.
Xylogeist 1 year ago
thanks alot about the tutorials, and I'm looking foreward to the next video...
adi25l 1 year ago
Comment removed
kaeleon1111 1 year ago
Hey dude,
i have a minor issue other than that it all went fine,
when i log in it says
Logged In! Welcome Array
thetechall 1 year ago
@thetechall check your code or put <?php echo "$user"; ?>
kaeleon1111 1 year ago
@kaeleon1111 echo out "$user";
kaeleon1111 1 year ago
@kaeleon1111 comes up basicly saying the variable $user doesnt exist so yeah, is there any other way? i dont need to echo out their name TBH
thetechall 1 year ago
@thetechall I have send u PM ;)
kaeleon1111 1 year ago
Dude thanks for these tutorials, just at the right time as im creating a website for a clan im in and i dont want to have to update everything manualy.
thetechall 1 year ago
u are the best!:D
kaeleon1111 1 year ago