MySQL Tutorial 2 - Inserting entries into database

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
14,640
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 12, 2009

In this tutorial I teach you how to insert values into the database, another important part of databases as you need a way always for users to add comments on your website or by them storing information on your guest book or forum etc.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (15)

Sign In or Sign Up now to post a comment!
  • @simeon310 variables can't have spaces.

  • Thanks by the way for the tutorial. My question is why the code did not work. Here is the code for reference:

    $name = "John";

    $last name = "Doe";

    $query = mysql_query("insert into customer values ('','$name', '$last name')");

    Thanks Again

  • I have a form page to add user information to a database and I want some of the fields to be optional. If all fields are filled in, it works perfectly. But if any of the form fields are blank, nothing adds. How do I get the blank form fields to translate into simply leaving the database field blank?

  • Try to increase the volume in your sound settings

  • loud up your microphone please.. :(

    i hear your typing keyboard louder than your voice.. :(

  • Tnx..:D it works..:D

  • i dont understand, why is there the $sign.INSERT INTO `trialtable` (`email`, `name`, `country`, `url`, `pending`, `password`, `showemail`, `showurl`, `added`) VALUES..?

  • @anaik1 The sound is fine.

  • What? Information seems great, but can barely hear a word you are saying! It's a shame too, you seem very knowledgeable.

  • @naruto3zo Thanks for that, that was the missing piece I was looking for, now I can get on with the real application of MySQLing... Cheers!!!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more