CGI & PHP Enhance your site with CGi, PHP and ASP scripts

  Subscribe via RSS

  Follow @XavierMedia

PHP Tutorial – 23 – Adding Tables to MySQL Database

June 12th, 2010 by CGI & PHP.com


www.youtube.com click that link if u wanna watch this video in high def! subscribe to my channel!

Popularity: 22% [?]


Subscribe to new posts from this blog
You may also be interested in...
Flash PHP MySQL CMS – Content Management System Website Tutorial CS3 + CS4
MySQL Tutorial
PHP and MYSQL – Connecting to a Database and Adding Data
Sams Teach Yourself MySQL in 24 Hours
Pagination Tutorial for PHP MySQL Programmers – Web Intersect Paging Database Results
Installing WAMP and Creating a MySQL Database

25 Responses to “PHP Tutorial – 23 – Adding Tables to MySQL Database”

  1. RoyCulemborg Says:

    You can make a field Null if you have to fill something in which isn't needed, think of a phone number, or of the name of your cat's mom.

  2. demonicsaint666 Says:

    Wow you actually make sense compared to every other video I've watched. greatly appreciated.

  3. blahbaa86 Says:

    Really good tutorial. it was very helpful.

  4. saadlulu Says:

    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.

  5. ministooges Says:

    Thank you. Great video.

  6. tuleo554 Says:

    PHP, Ajax and SQL made easy :)

    tulesblog(dot)(com)/ajax-tutorial

  7. Techn0Junki3 Says:

    xampp also has phpmyadmin

  8. freid001 Says:

    thank you this is so use full thanks!!!!!

  9. afsoun3000 Says:

    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

  10. windowsexplore Says:

    1 to 23… hmmm………
    so far…
    the best php tutorial on youtube
    only my opinion
    Much oblidge.

  11. jegsmeganu Says:

    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

  12. honeykiss1 Says:

    thanks alot dude you are the best……this is the most helpful tutorial ever! especially for my school work! you rOcK!

  13. bladejsc1997 Says:

    I would null it for like, field questions on a test for employees.

  14. 32penn Says:

    get ulmb so much better

  15. SomaVIII Says:

    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.

  16. SomaVIII Says:

    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.

  17. jsmith19810808 Says:

    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.

  18. jsmith19810808 Says:

    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.

  19. cobby32 Says:

    I was pointing out that the value was redundant.

  20. jsmith19810808 Says:

    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.

  21. ariaane Says:

    The New Boston- you rock!

    Thanks for the tutorial- it has proved to be very helpful

  22. GdiUplineTeam Says:

    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…..

  23. dtrance71157 Says:

    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 !

  24. cobby32 Says:

    Sorry, 100.

  25. cobby32 Says:

    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.

Leave a Reply

Powered by WP Status.net plugin.


Fantastic web hosting at cheap prices
© Copyright 1996-2012 Xavier Media®. All rights reserved.
Contact us | Support/help | Privacy Policy | About Xavier Media
The World According to Xavier | Powered by Yahoo! Answers