Love your tutorials but I do know of a field can and should have null ability. One example is Address2 If you don't have an apartment number or suit, there is no need for that field to be populated. Another might be MiddleInit. Not every one has a middle name. The examples could go on quite detailed but it is a needed function. Keep up the good work.
null filed means that they CAN be empty (they are null by default)
so when you creating some form in php with optional fields, values inputed by user can be empty and no error will apper when he press sumbit button because database does not require value in this field
I'm using the cPanel hosting service, which allows me to access and create MySQL Databases and tables, the only problem is that is that it continues to tell my that i cannot access because of an incorrect username or password, however, it never gives me the option of signing in. Can anyone remedy this problem?
I making blog site , and i wondering can i store my post (content of post, date of release...; by content i think images , videos , html coding ) , please help me , i stuck there !!???
For example, if you had a table of household's and a table of people in each household. The table of people would have a different person in each row, and also a foreign key column with an id that matches the primary key (id) of the household they are in:
Primary keys are also needed when you have a row in a different table referencing a column in another table (when you have what is called a 1 to many relation between 2 tables is a good example of when you need that). In that case you have a Foreign Key column in the "many table" referencing the primary key in the "one table".
id is what is called the "Primary Key". Each primary key is unique, so that when you want to select a specific row in the database, you can be assured that you will get the row you want (because there could be 2 or people with the name "Bob" for example, but each "Bob" would have a different Primary Key.
Great work on explaining how to add and make database. What you should explain first are the requirements. If you were to build a website what will the requirement me. Get the point. Alway explain what your doing. Great work :)
Hey guys, I'm doing several videos on PHP Programming videos as well as other languages, if you're truly interested in learning come check out my channel :) High quality tutorials, as well as, high quality explanations. :) Subscribe if you like and would like to get my videos as I post them! :D
I would just like to say that learning PHP on youtube is cool and all and there ARE some really neat tutorials, but If you ever felt that you wanna learn all of it quick, Simplephp is a complete guidebook to the php language in an e-book form. It takes all the useful information and displays it then goes on to the more complicated fancy stuff. Good php programmers can make like 125$ an hour so why not learn it and make the money yourself! Its WAY cheaper then all the rest. Here: tinyDOTcc/332n9
Hey, I actually do have something that uses null fields. I'm making a dictionary with conjugation and declension tables. Some words are defective, such as the word "can" which has no future tense, so all of its future tense fields will be null.
why would anyone make a null field, well the answer is simple bucky..
think of it this way, u have few employees and some of them will have null as a value for commission that means they will never get commission,while some others will have a value of 0, meaning that they will have commission sometime while they work, but not at the current time.
How do you inset values for multiple rows in a table? This Tut. shows only 1 row of values..but when you have more what's the easiest and fastest way? thanks
@windowsexplore the same. I'be been searching for really good tutorials and skilful teachers to learn these all stuff. Explaining all stuff if 5/5 so far. :)
The reason for NULL is so that that value doesn't have to be assigned at any given time so say in a social network if you used NOT NULL on comments or friends you would have to set it as soon as you make a user or something( the value could be empty/0 though ). Allot of PHP developers don't know actual SQL just the essentials.
If any of you think thats complex you should try doing JOINS, if you wanted a user to sign up, putting their comments or whatever or posts in another table and making a foreign key from the user id to the post, links them in and allows for optimised querying. 1 - many relationship.
Hello! Very nice tutorials and I learn how to create a database and table. It's been 3 months that I'm looking tutorials like this very clear. Anyway, I still have a problem I want to make a website with multiple users and still confused how to create signin, sign up and profile.....Someody can help me? Hoping THENEWBOSTON will hear my prayer.....
If you still interested in a while I'm going to start my Web Developers Tutorials which will be using PHP as the Scripting language and MySQL as the database. We will be creating a socialnetwork and other things like blogs photohost and probably a few more any idea on what you would like to see in the projects let me know.
Your lessons are really helpful to newbies.There is a plenty of tutorials on creating databases,but they dont teach how to create MySQL Tables.You are a great teacher !
It can be any but you have to take appreciation to memory size of your DB, if its not going to be that big but for productional purposes they can become huge so selecting an optimised datatypes crucial to database development.
I develop on databases as part of my day job, with PHP and Ajax.
I am sorry think I may have missed that but you dont even need to put mysql_error() in at all, thats an object of PHP if you like, its good though for debugging purposes.
If you go into the source code you can see all the functions like that for databases, how the default debugger works, I have a test machine for PHP, with xdebug on it (strictly not meant for productional servers), then I have a virtual machine on that server to run a production fully blown apache server, a VPS solution.
Best tutorials ever, that I've used anyway. Came across you looking for just some php information, and you basically answered enything I needed to knot. And.... I like you're style.
really good tutorials. what makes them so good is that youre moving really slowly, methodic and exactly forward. no steps are being skipped, which is more very common among most sites and tutorials.
to run the templats need a username ...password.. you know
and i wanted to host my own database on my home server ,please tell me how and what i should do i will be more than happy to hear from you thanks again
I have making connation with Mysql data but i dont no how to make a table a mian like to make php login in dreamwaver i have conntacion but no record set i dont know to make that so pleas help
A null field comes in handy if your table is picking up data that is not always used in each case. If you set it to not null and that field is not used in that instance, then the user will have to put in a bogus piece of information to be able to post the input. It is a very useful tool in some cases.
PHPmyAdmin is so sweet. When I first started learning databases and sql, I started with MySQL and learned the sql commands manually from command line. =D I kind of had something against using phpadmin, although i'd heard of it. I thought it might spoil me, and make me forget whats going on behind the scenes, but damn its so convenient. I think I'll start using it. Thx.
he likes the number 20
russellsolid 4 months ago
Love your tutorials but I do know of a field can and should have null ability. One example is Address2 If you don't have an apartment number or suit, there is no need for that field to be populated. Another might be MiddleInit. Not every one has a middle name. The examples could go on quite detailed but it is a needed function. Keep up the good work.
repalmore 5 months ago in playlist TheNewBoston - PHP
is their not a more secure way than just 1 password to store data?
lalaliam 5 months ago
yaaayyy... thanx alot.. i just created my first table..
djhchew 6 months ago
hard as hell!
28306dc 6 months ago
Is it the same as creating a Mysql table and a PHP form to connect?
TheLegend1245 6 months ago
"...And we'll, finally, be creating our frst computer game.. :P
...Well creating the registration form too it." :'(
stumblinbear 6 months ago
i love you.u r saving my life dude.I like the way u talk as well.it's actually fun
bilguitei 6 months ago
"...and we'll (finally) be creating our first computer game!"
mfw c':
DJBerserk 7 months ago
6:52 - "In the next tutorial, we're gonna be creating our first computer game."
Me: "WHAT?!?!"
6:57 - "... Or at least the registration form."
Me: "Awwww...."
pupmommydad 7 months ago
How to add auto_inceremnt field on phpmyadmin?
arvids817 7 months ago
I have learned. thanks but I admit I obtuse long I realize these things .. but I must learn it because part of my major. this my major subject...
stefbabydave 8 months ago
I have learned. thanks but I admit I obtuse long I realize these things .. but I must learn it because part of my major. this my major subject.
stefbabydave 8 months ago
had to do this in mysql commandline oh the fun :P but had a template luckily :)
jago125 8 months ago
great vid
th2 8 months ago
null filed means that they CAN be empty (they are null by default)
so when you creating some form in php with optional fields, values inputed by user can be empty and no error will apper when he press sumbit button because database does not require value in this field
StevenCarline 10 months ago 6
You use the null field, if you want to let the user have an optional field such as telephone number or something that they might now want to enter.
ethanownz 10 months ago
You have taught me Python, JAVA and now this. Sir, I am in a great debit to you.
AISim 11 months ago
I'm using the cPanel hosting service, which allows me to access and create MySQL Databases and tables, the only problem is that is that it continues to tell my that i cannot access because of an incorrect username or password, however, it never gives me the option of signing in. Can anyone remedy this problem?
Dragonblix 11 months ago
@Dragonblix The will provide you with username and password, if they don't email the administrators.
RebornAc3 8 months ago
I making blog site , and i wondering can i store my post (content of post, date of release...; by content i think images , videos , html coding ) , please help me , i stuck there !!???
Krivudalo 1 year ago
Can i put primary key for username , so each username will be different ???
will it be good idea
Krivudalo 1 year ago
@Krivudalo
auto_increment is what makes it different(makes it go 1 up everytime).
Primary Key is there because id mainly organises the players.
Maniack017 1 year ago
This has been flagged as spam show
If you can meet naughty women benaughtyman.info
samnthikumari 1 year ago
your soon to be famous!!
HawxTeamDelta 1 year ago
PHP gurus
samiwistler 1 year ago
For example, if you had a table of household's and a table of people in each household. The table of people would have a different person in each row, and also a foreign key column with an id that matches the primary key (id) of the household they are in:
Jajaja2011Jajaja 1 year ago
Primary keys are also needed when you have a row in a different table referencing a column in another table (when you have what is called a 1 to many relation between 2 tables is a good example of when you need that). In that case you have a Foreign Key column in the "many table" referencing the primary key in the "one table".
Jajaja2011Jajaja 1 year ago
id is what is called the "Primary Key". Each primary key is unique, so that when you want to select a specific row in the database, you can be assured that you will get the row you want (because there could be 2 or people with the name "Bob" for example, but each "Bob" would have a different Primary Key.
Jajaja2011Jajaja 1 year ago
I would pay for a DvD with these tutorials in it...just so you know... ;)
FlyingBroMan 1 year ago 3
null is used for optional info... duhh :)
autom4 1 year ago
If i had money i would invest in you. :)
gunner4192 1 year ago 2
same host here :D cheers for bluehost
alex007152 1 year ago
Great tutorial!
Last time I worked with this stuff was about 1-2 years ago, so this was perfect for refreshing my memory.
wittyadrian 1 year ago
This has been flagged as spam show
Ready to night party and meet naughty women **mworld5.info**
sfgdxgfsdgdfg 1 year ago
i think..
...
.... you are the best :)
xXLiverpoolFCXx 1 year ago
excellent videos....
999america 1 year ago
Great work on explaining how to add and make database. What you should explain first are the requirements. If you were to build a website what will the requirement me. Get the point. Alway explain what your doing. Great work :)
Jugdesi 1 year ago
i am using a different host but i cant get the auto number here is my host theepichost.info please help im stuck
topvirus2k9 1 year ago
in your vedio you asked "why anyone wont to add some NULL value to the database and if any one know you hope to tell you " may i tell you :
you need the Null value in case the recored which inclue these Nulls Will modify later specially when you talk about the historical data inserting
example
id | EmpID | Job ID | Date_Of_Join_Job | Date_Of_Leave_Job | This_Record_Is_Active | Record_Active_Date | Record_Deactive_date. Date_Of_Leave_Job , Record_Deactive_date MUST Accept Null
kwaizimodo 1 year ago
This has been flagged as spam show
plz see and help me what am do ??
watch?v=Ipggfejz38s
sajidctn 1 year ago
This has been flagged as spam show
Hey guys, I'm doing several videos on PHP Programming videos as well as other languages, if you're truly interested in learning come check out my channel :) High quality tutorials, as well as, high quality explanations. :) Subscribe if you like and would like to get my videos as I post them! :D
TheProgrammingSchool 1 year ago
I love this guy. I was nearly in tears trying to sort this out. 10/10
Great step by step, crystal clear instructions.
derekmcgoldrick 1 year ago
This has been flagged as spam show
I would just like to say that learning PHP on youtube is cool and all and there ARE some really neat tutorials, but If you ever felt that you wanna learn all of it quick, Simplephp is a complete guidebook to the php language in an e-book form. It takes all the useful information and displays it then goes on to the more complicated fancy stuff. Good php programmers can make like 125$ an hour so why not learn it and make the money yourself! Its WAY cheaper then all the rest. Here: tinyDOTcc/332n9
runemaster123654 1 year ago
so far its been quite useful
VaticanIscariot 1 year ago
mysql_query('CREATE TABLE `name` (id BIGINT NOT NULL AUTO_INCREMENT, PRIMARY KEY(id))');
xbugster 1 year ago
Hey, I actually do have something that uses null fields. I'm making a dictionary with conjugation and declension tables. Some words are defective, such as the word "can" which has no future tense, so all of its future tense fields will be null.
iamawesometoo 1 year ago
Thank you, Bucky. - behind vfx
mangoprojects 1 year ago
Wow you actually make sense compared to every other video I've watched. greatly appreciated.
demonicsaint666 1 year ago
Really good tutorial. it was very helpful.
blahbaa86 1 year ago
why would anyone make a null field, well the answer is simple bucky..
think of it this way, u have few employees and some of them will have null as a value for commission that means they will never get commission,while some others will have a value of 0, meaning that they will have commission sometime while they work, but not at the current time.
saadlulu 1 year ago
Thank you. Great video.
ministooges 1 year ago
PHP, Ajax and SQL made easy :)
tulesblog(dot)(com)/ajax-tutorial
tuleo554 1 year ago
xampp also has phpmyadmin
Techn0Junki3 2 years ago 3
thank you this is so use full thanks!!!!!
freid001 2 years ago
How do you inset values for multiple rows in a table? This Tut. shows only 1 row of values..but when you have more what's the easiest and fastest way? thanks
afsoun3000 2 years ago
1 to 23... hmmm.........
so far...
the best php tutorial on youtube
only my opinion
Much oblidge.
windowsexplore 2 years ago 2
@windowsexplore the same. I'be been searching for really good tutorials and skilful teachers to learn these all stuff. Explaining all stuff if 5/5 so far. :)
Thanks.
tavsprezidents 1 year ago
You've got the talent given by G-d for FREE so use it and share it for FREE.
Just like SCIENCE. SCIENCE is SHARING OF KNOWLEDGE
jegsmeganu 2 years ago
thanks alot dude you are the best......this is the most helpful tutorial ever! especially for my school work! you rOcK!
honeykiss1 2 years ago
I would null it for like, field questions on a test for employees.
bladejsc1997 2 years ago
get ulmb so much better
32penn 2 years ago
The reason for NULL is so that that value doesn't have to be assigned at any given time so say in a social network if you used NOT NULL on comments or friends you would have to set it as soon as you make a user or something( the value could be empty/0 though ). Allot of PHP developers don't know actual SQL just the essentials.
SomaVIII 2 years ago
If any of you think thats complex you should try doing JOINS, if you wanted a user to sign up, putting their comments or whatever or posts in another table and making a foreign key from the user id to the post, links them in and allows for optimised querying. 1 - many relationship.
jsmith19810808 2 years ago
The New Boston- you rock!
Thanks for the tutorial- it has proved to be very helpful
ariaane 2 years ago 3
Hello! Very nice tutorials and I learn how to create a database and table. It's been 3 months that I'm looking tutorials like this very clear. Anyway, I still have a problem I want to make a website with multiple users and still confused how to create signin, sign up and profile.....Someody can help me? Hoping THENEWBOSTON will hear my prayer.....
GdiUplineTeam 2 years ago
If you still interested in a while I'm going to start my Web Developers Tutorials which will be using PHP as the Scripting language and MySQL as the database. We will be creating a socialnetwork and other things like blogs photohost and probably a few more any idea on what you would like to see in the projects let me know.
SomaVIII 2 years ago
Your lessons are really helpful to newbies.There is a plenty of tutorials on creating databases,but they dont teach how to create MySQL Tables.You are a great teacher !
dtrance71157 2 years ago 3
Why did you set ID as a BIGINT but then put 1000 in the length/value column? BIGINT will never be more than 20 anyway.
cobby32 2 years ago
Sorry, 100.
cobby32 2 years ago
It can be any but you have to take appreciation to memory size of your DB, if its not going to be that big but for productional purposes they can become huge so selecting an optimised datatypes crucial to database development.
I develop on databases as part of my day job, with PHP and Ajax.
jsmith19810808 2 years ago
I was pointing out that the value was redundant.
cobby32 2 years ago
I am sorry think I may have missed that but you dont even need to put mysql_error() in at all, thats an object of PHP if you like, its good though for debugging purposes.
If you go into the source code you can see all the functions like that for databases, how the default debugger works, I have a test machine for PHP, with xdebug on it (strictly not meant for productional servers), then I have a virtual machine on that server to run a production fully blown apache server, a VPS solution.
jsmith19810808 2 years ago
Best tutorials ever, that I've used anyway. Came across you looking for just some php information, and you basically answered enything I needed to knot. And.... I like you're style.
gnomsin 2 years ago
really good tutorials. what makes them so good is that youre moving really slowly, methodic and exactly forward. no steps are being skipped, which is more very common among most sites and tutorials.
thumbs up.
voteforgod 2 years ago
Thanks man your tutorials really helped! I finally have a working search engine!
alexjb4 2 years ago
you will add a table and i will add 4 chairs haha
D34tho 2 years ago 11
Thank you so much... I have been looking all over the internet for this.
lorentefoe 2 years ago 24
On my host I can't select 'Primary', what i have to do?
3:30
appi3hein 2 years ago
Already solved it.
appi3hein 2 years ago
This guy obviously doesn't now anything about MySQL performance issues or how to properly store a password field.
ddstar 2 years ago
i got it sir :D :D :D :D
SriLankanAirlines 2 years ago
thanks for your tutorials thanks man oh
i have web templats that need a database
to run the templats need a username ...password.. you know
and i wanted to host my own database on my home server ,please tell me how and what i should do i will be more than happy to hear from you thanks again
dreamstartmedia 2 years ago
Awesome!
Its getting clearer and clearer by the second!
Thank you!
mectoonTube 3 years ago
Dude you are AWESOME! YOu helped sooooo much! Thanks!!!!
alwayssmiling62 3 years ago
Great tutorials Thanks!!!!
lra7 3 years ago
Hi
I have making connation with Mysql data but i dont no how to make a table a mian like to make php login in dreamwaver i have conntacion but no record set i dont know to make that so pleas help
tipupuma 3 years ago
thank alot!
Aleque 3 years ago
A null field comes in handy if your table is picking up data that is not always used in each case. If you set it to not null and that field is not used in that instance, then the user will have to put in a bogus piece of information to be able to post the input. It is a very useful tool in some cases.
WolfenSystems 3 years ago
Very much appreciated! These tutorials are getting better and better
beastlt12 3 years ago
PHPmyAdmin is so sweet. When I first started learning databases and sql, I started with MySQL and learned the sql commands manually from command line. =D I kind of had something against using phpadmin, although i'd heard of it. I thought it might spoil me, and make me forget whats going on behind the scenes, but damn its so convenient. I think I'll start using it. Thx.
omymonkey 3 years ago
Not bad. It couldve been a little bit more informative. b.g. more detailed,
Btw.... key fields are characters/special properties that make data uniquely defined. Usually associated with a relational database.
Nice tutorial though... i'm sure that it would help newbies greatly.
Session01Hijack 3 years ago 2
you rock. it's a shame that not a lot of people know about your tutorials, though.
cheesylard 3 years ago 27
haha thanks. im just gonna keep putting out more and more tutorials and hopefully more people will find out about me soon!
thenewboston 3 years ago 24
@thenewboston I'm busy with a browser game - and website development project for the last 8 months,
and because you tutorials are so great i link everybody to your tutorials.
And i will keep doing that to anyone i meet ;)
Keep up the good work! You help people alot and i don't know how to thank you properly for that. Thank you.
Niel8181 1 year ago
@cheesylard Lol, 2 years later he's famous!
Alpeche21 5 months ago
great vid, real informative.
thanks
hexenlead 3 years ago 2