I am from BANGLADESH and I follow your tutorials regularly.I hope that by following your tutorial one more month I can open my own website.THANK YOU DANIEL
I love watching your videos! You've helped me get back into programming after a break due to a long illness. Thank you. This, like my last comment, is about a small thing I couldn't help noticing but I don't want you to feel I'm anything but impressed with your work. :) Looking at the piece of code introduced around 18:00 : if ($row['keystringKey'] == $randStr) { $keyExists = true; break; }else{ $keyExists = false; } This would be slightly neater as follows: $keyExists = ($row['keystringKey'] == $randStr); if ($keyExists) { break; } It is also not necessary to double compare a boolean statement 'if (true == true)' for example in the while loop. Hope this helps someone and once again keep up the good work :)
Hi Daniel, love your courses! -> good example 8 keys: you "forgot" to catch the case where all the available keys are already generated and exist in your DB. I guess you'd run into an eternal loop. Cheers...
Peter S.D. Heiss Hi Peter :) in this situation I would just make sure that the generated key, is set to a length that would ensure enough combinations for the expected amount of users. It doesn't take a lot of characters to allow plenty of possible keys.
Very useful tutorial. You are to worried about cutting the video and over explain it a bit. My eyes are focused on the cursor on the screen and only when you stop typing and start waving with your hands I will look at you. Don't worry about cutting in the video, just keep the focus on the story 😉. And if you're worried about people flying towards the comment section about security just say the phrase "bare with me it's just to make the explaining easier, I will change it in the end" Referring to a video is cool bro. If you need people to know stuf you already explained just leave the video in the description and point them to it. I love your videos and this is just a comment that is intended to help you 👊
Can you show us how to make an MVC in PHP, as well as a video on how to create a social network. I know how to create a social network, it'll just be cool if you did so other people can create something similar, because there's a lack of videos on how to do that. It'll also be a good chance to put skills that you've taught into practice. 👌
Another excellent tutorial, this was really useful and it is good that you gave three examples on how to achieve the desired results. I guess this could be used to email temporary links for email activation when creating a sign up screen on a website?
15:25 Do NOT do it like that, this is VERY inefficient. instead of looping through the array, just add a WHERE word at the end of your query. Mysql does it WAY faster then a php loop
Good for you! Ur the MAN! At the same time, an example of how you must not write code ... Because of such examples - PHP has a bad reputation ... So: - Optimization of the table structure in the database Why do we need `keystringId` ??? The setting table (innoDb?) For storing unique, text values of a fixed length ... - Why iterating through the array of all records in the loop? Shit! Selecting all records from the database? Are you serious? Try to --- "SELECT `keystringKey` FROM `table` WHERE `keystringKey` = $ randStr LIMIT 1 " or generally: SELECT TRUE FROM ... You do not need a value - OMG ... Why duplicating the code? Try to --- while (($ checkResult = checkKeys ($ randStr)) === true) and keep in memory $checkResult Try to --- do {} while () - Why carry around with $conn ??? What does this shit does in the parameters of the function for STRING GENERATION? Dude! Try to --- Use the scope; as a solution - function getConn () {} - F**k the console (terminal)! Browser only =)
love your tutorials and gone through them over and over again. but i am still struggling with form validation. the sample tutorial you had was quite complex with respect to validating username and other fields
Thank you Very much for the tutorial. It helped me a lot. But when I run the project, I get this error "Notice: Undefined variable: keyexists in C:\xampp\htdocs and2\index.php on line 42". How to over come this? Please help me.
*Thank You So Much!!!!! Please Whenever You Get Free Will You Please Make A Video To Do Something That After The User SignsUp He Need To Verify The Email with some verification code or by **_CLICKING_** On the LINK...*
Great tutorial. Thank you so much. I just want to suggest you to make an amendment to function generateKey($conn) coding. Since $randstr and $checkKey lines in 3rd and 4th lines of that function gets repeated in the while loop, Why not replace those 3rd and 4th lines with only one line $checkKey = true; Then still while loop should work, isn't it? My suggested coding: function generateKey($conn) { $key Length = 1; $str = "abcdefg"; $checkKey = true; while($checkKey == true) { $randstr = substr(str_shuffle($str), 0,$keyLength); $checkKey = checkKeys($conn, $randStr) ; } return $randStr; }
Could you do a tutorial on how to make a news section in a website using databases? Please! This would be really helpful, as there is 0 solutions on google at the moment!!
Hi Dani can you create a calclulator that perform arithmetics to numbers as strings in php. mind that php doesnt compute arithmetics on string unlike java
Hi, im a designer, i have no clue about coding but i curious about one thing. How can i do like first member id is @1, second is @2 and goes on like that. How can i do it?
How do i generate a random unique id up login as a user for the first time, and keep that number that generated, so when login again it would remain the same
I don't get something... Minute 17:59 So the break stops the function from running.... after break shouldn't we call again generateKey() in order to generate a new key?
So, after you generate this code... How do you actually insert it into the database... I am trying to be able to generate unique user ID... So, I already have a website form... and I am able to fill out the form on my website... and in my file manager, I have a php file which then receives the data from the form, then emails it to me... But I also want to be able to insert them into my database.
What do you mean? Typically when you create a database table, each row gets their own IDs if you set it up correctly. And in this video i show how to create a unique string that could be used as a long custom ID, if that is what you mean. :)
Is This key remains one and the same, or keep changing, that is to say in Person Address Table it is possible that there are two identical names that is if My Name is Sunil Pandya and My details, some else who's the name also will be Sunil Pandya but his address will be different, email id will be different. To Not to create chaotic situation Person Address table will have unique Id, User of this table, if wish to query, will have to enter this unique id, Can Key generated by Random or Unique id be used, the ID should not change again and again after saving in Database Table
Thanks very much for the tutorial. A very useful tutorial. Hope there will be a video on how to do same using mysqli prepared statement (mysqli_stmt class) and also hope there will be a video for sending email verification code, linking upto one of the login/signup system videos on your youtube channel.
thanks very much sir, after trying the code it worked. but i keep having as this message "that $keyExists" is not defined. so how can i fix that. and also please sir how can i make this code echo on a web page in an input for the user to see it as he fill the form before sending to database.
hey mmtuts I'm about to make an php code that generate a product key in to my database for my c++ program that I created could you help me out to make the key generate once a user sign up on my webbsite
Hello sir, Just make a video on advance login system in which session is not expired after browser window is closed by use of cookies like fb, instagram login system. Please
black background on tutorial video is eye straining. Why most tutorial video makers prefer black background display alongside red or dark toned colors for letters. Whether lesson is good, eye straining visibility makes it like watching 1890's movie. Visibility of video through youtube is really not as same as working on black background IDE directly on personal computer.
Actually, the opposite of what you are saying has been proven to be straining for the eyes :) White backgrounds tires the eyes faster which is why experts say to use dark backgrounds when looking at a screen for an extended amount of time. This is why nearly all text editors have black backgrounds by default.
I think you didn't get the point. Dark background is probably better when directly working on personal computer. But when watching video of recorded black or dark IDE, the visibility becomes indirect or its quality gets low. You can simply see the difference while watching youtube. The difference is obvious when you move your eyes over youtube videos with written text on black background and then switch to the texts on white background or even texts on computer.
Very excited to learn this, thanks for the tutorial! You're the only reason I know anything about PHP in the first place. Keep up the amazing work!
Man you can't understand what i'm gaining because of your logics ,you made my life happier ,thank you so much!
I am from BANGLADESH and I follow your tutorials regularly.I hope that by following your tutorial one more month I can open my own website.THANK YOU DANIEL
Thank You Sir Ji
You explaining way is so good,
I love watching your videos! You've helped me get back into programming after a break due to a long illness. Thank you. This, like my last comment, is about a small thing I couldn't help noticing but I don't want you to feel I'm anything but impressed with your work. :)
Looking at the piece of code introduced around 18:00 :
if ($row['keystringKey'] == $randStr) {
$keyExists = true;
break;
}else{
$keyExists = false;
}
This would be slightly neater as follows:
$keyExists = ($row['keystringKey'] == $randStr);
if ($keyExists) {
break;
}
It is also not necessary to double compare a boolean statement 'if (true == true)' for example in the while loop. Hope this helps someone and once again keep up the good work :)
I loved your all tutorials. Those all are very helpful for me and my computer science classmates here Ethiopia. Keep it up!
Hi Daniel,
love your courses!
-> good example 8 keys: you "forgot" to catch the case where all the available keys are already generated and exist in your DB. I guess you'd run into an eternal loop.
Cheers...
Peter S.D. Heiss Hi Peter :) in this situation I would just make sure that the generated key, is set to a length that would ensure enough combinations for the expected amount of users. It doesn't take a lot of characters to allow plenty of possible keys.
Another solution would be to add additional or duplicate characters/symbols to the list of possible characters in the key. :)
Very useful tutorial.
You are to worried about cutting the video and over explain it a bit. My eyes are focused on the cursor on the screen and only when you stop typing and start waving with your hands I will look at you. Don't worry about cutting in the video, just keep the focus on the story 😉. And if you're worried about people flying towards the comment section about security just say the phrase "bare with me it's just to make the explaining easier, I will change it in the end"
Referring to a video is cool bro. If you need people to know stuf you already explained just leave the video in the description and point them to it.
I love your videos and this is just a comment that is intended to help you 👊
God Bless You Man. Thanks for giving us these videos.
Recently found your channel and videos, great stuff! Looking forward to catching up on the backlog of videos! Cheers!
I like ur ways, every moment I feel u smart I go and hit the like button
Dear, mmtuts, I am from Nepal, Thank You very much for this kinds of great job very easily. Thanks again very much.
wow ! first time i see your channel and boom! , now i going to start and finish your html and css series and then php and javascript just thanks!
Can you show us how to make an MVC in PHP, as well as a video on how to create a social network. I know how to create a social network, it'll just be cool if you did so other people can create something similar, because there's a lack of videos on how to do that. It'll also be a good chance to put skills that you've taught into practice. 👌
Another excellent tutorial, this was really useful and it is good that you gave three examples on how to achieve the desired results. I guess this could be used to email temporary links for email activation when creating a sign up screen on a website?
You're a life saver
I realize Im kinda randomly asking but does anyone know of a good place to watch new series online?
@Beau Jude I would suggest FlixZone. Just search on google for it :)
@Beau Jude I use flixzone. You can find it on google =)
That was so useful
it's helped me to continue my project
Thank you
Thanks for this logic idea.. that learn me a lot 👍👌
Thanks, I had fun learning this xD
15:25
Do NOT do it like that, this is VERY inefficient.
instead of looping through the array, just add a WHERE word at the end of your query. Mysql does it WAY faster then a php loop
Excellent tutorial! Thank you.
Thank you 🥰
amazing tutorial
Good for you! Ur the MAN!
At the same time, an example of how you must not write code ...
Because of such examples - PHP has a bad reputation ...
So:
- Optimization of the table structure in the database
Why do we need `keystringId` ???
The setting table (innoDb?) For storing unique, text values of a fixed length ...
- Why iterating through the array of all records in the loop? Shit!
Selecting all records from the database? Are you serious?
Try to --- "SELECT `keystringKey` FROM `table` WHERE `keystringKey` = $ randStr LIMIT 1 "
or generally: SELECT TRUE FROM ... You do not need a value
- OMG ... Why duplicating the code?
Try to --- while (($ checkResult = checkKeys ($ randStr)) === true) and keep in memory $checkResult
Try to --- do {} while ()
- Why carry around with $conn ???
What does this shit does in the parameters of the function for STRING GENERATION? Dude!
Try to --- Use the scope; as a solution - function getConn () {}
- F**k the console (terminal)! Browser only =)
Thanks! This helped a lot!
an* unique string ;)
Thanks for the tutorial! Don't take the correction as ill-hearted, love you
Nope it's "a unique" :)
www.quora.com/Which-is-the-correct-grammar-usage-a-unique-or-an-unique
haha, you got me there! Seems like the www.ef.com/english-resources/english-grammar/determiners/ are the culprits
Thank you.
love your tutorials and gone through them over and over again. but i am still struggling with form validation. the sample tutorial you had was quite complex with respect to validating username and other fields
Thank you Very much for the tutorial. It helped me a lot. But when I run the project, I get this error "Notice: Undefined variable: keyexists in C:\xampp\htdocs
and2\index.php on line 42". How to over come this? Please help me.
*Thank You So Much!!!!! Please Whenever You Get Free Will You Please Make A Video To Do Something That After The User SignsUp He Need To Verify The Email with some verification code or by **_CLICKING_** On the LINK...*
could not Thank you enough !!
good we can't thank you enough
Great tutorial. Thank you so much.
I just want to suggest you to make an amendment to function generateKey($conn) coding.
Since $randstr and $checkKey lines in 3rd and 4th lines of that function gets repeated in the while loop,
Why not replace those 3rd and 4th lines with only one line
$checkKey = true;
Then still while loop should work, isn't it?
My suggested coding:
function generateKey($conn) {
$key Length = 1;
$str = "abcdefg";
$checkKey = true;
while($checkKey == true) {
$randstr = substr(str_shuffle($str), 0,$keyLength);
$checkKey = checkKeys($conn, $randStr) ;
}
return $randStr;
}
i watched all php tutorial videos, thanks for tutorials , can you show us how to create rest api in php ?
Could you do a tutorial on how to make a news section in a website using databases? Please! This would be really helpful, as there is 0 solutions on google at the moment!!
*_Thank_** You!!!!!!!!!!!!!!!!!!!!!!!*
Here is your video request ;)
*mmtuts welcome!*
Another great video! :)
Hi Dani can you create a calclulator that perform arithmetics to numbers as strings in php. mind that php doesnt compute arithmetics on string unlike java
Great
Love this tutorials
Is it possible to create group of different unique ID like phrases
Hi, im a designer, i have no clue about coding but i curious about one thing. How can i do like first member id is @1, second is @2 and goes on like that. How can i do it?
You are Love
How do i generate a random unique id up login as a user for the first time, and keep that number that generated, so when login again it would remain the same
I don't get something... Minute 17:59 So the break stops the function from running.... after break shouldn't we call again generateKey() in order to generate a new key?
thanks
So, after you generate this code... How do you actually insert it into the database... I am trying to be able to generate unique user ID... So, I already have a website form... and I am able to fill out the form on my website... and in my file manager, I have a php file which then receives the data from the form, then emails it to me... But I also want to be able to insert them into my database.
can you make a tutorial about how to create a custom id in database?
What do you mean? Typically when you create a database table, each row gets their own IDs if you set it up correctly. And in this video i show how to create a unique string that could be used as a long custom ID, if that is what you mean. :)
Is This key remains one and the same, or keep changing, that is to say in Person Address Table it is possible that there are two identical names that is if My Name is Sunil Pandya and My details, some else who's the name also will be Sunil Pandya but his address will be different, email id will be different. To Not to create chaotic situation Person Address table will have unique Id, User of this table, if wish to query, will have to enter this unique id, Can Key generated by Random or Unique id be used, the ID should not change again and again after saving in Database Table
Thanks very much for the tutorial.
A very useful tutorial.
Hope there will be a video on how to do same using mysqli prepared statement (mysqli_stmt class) and also hope there will be a video for sending email verification code, linking upto one of the login/signup system videos on your youtube channel.
I need to create a link for registration page after registration that link will be deleted. Thanks.
Can you make tutorial about shopping cart ?
hello how do i to i insert the randomly generated keys into a database?
thanks very much sir,
after trying the code it worked. but i keep having as this message "that $keyExists" is not defined. so how can i fix that.
and also please sir how can i make this code echo on a web page in an input for the user to see it as he fill the form before sending to database.
another awesome video
want to know how to send email
I have a video on sending emails in my HTML course and PHP course :)
hey mmtuts I'm about to make an php code that generate a product key in to my database for my c++ program that I created could you help me out to make the key generate once a user sign up on my webbsite
Hey, i am working on a website, i would really appreciate if you made a tutorial episode/series on how to make a forum. :D
smelly pengu just code it yourself
how about uniqid() with md5 and salt is that safe?
not for anything you need in connection with any kind of security
Hi sir can you teach us how to generate code and save into a file after click a button?
i currently successful save into new file, but could not click to generate code, all i did only can enter text manually
this code not working, iam not getting unique string
waiting for Codeigniter tutorial series
it says undefined variable conn?
Hello sir,
Just make a video on advance login system in which session is not expired after browser window is closed by use of cookies like fb, instagram login system.
Please
maybe cool to make a toturial php chatting site with php, its not that hard.
How do I create a list number/password of up to 1 million data? anyone know?
black background on tutorial video is eye straining. Why most tutorial video makers prefer black background display alongside red or dark toned colors for letters. Whether lesson is good, eye straining visibility makes it like watching 1890's movie. Visibility of video through youtube is really not as same as working on black background IDE directly on personal computer.
Actually, the opposite of what you are saying has been proven to be straining for the eyes :) White backgrounds tires the eyes faster which is why experts say to use dark backgrounds when looking at a screen for an extended amount of time. This is why nearly all text editors have black backgrounds by default.
I think you didn't get the point. Dark background is probably better when directly working on personal computer. But when watching video of recorded black or dark IDE, the visibility becomes indirect or its quality gets low. You can simply see the difference while watching youtube. The difference is obvious when you move your eyes over youtube videos with written text on black background and then switch to the texts on white background or even texts on computer.
I didn't learn anything new but thanks anyway.