PHP Tutorials: MySQL (Part 2)


Connecting to the database, error handling and selecting your database.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , , , ,

12 Responses to “PHP Tutorials: MySQL (Part 2)”

  1. ahmed1on1 says:

    thanks really helpful

  2. therats2270 says:

    bravo tut +1

  3. sekulr says:

    @eyeAMtwinkEE You save it to “htdocs” folder in the Xampp directory

  4. eyeAMtwinkEE says:

    Nevermind this.

    It won’t let me import my mysql page because of some syntax error.

    I googled the error number (#1064) but that turned up nothing.

  5. eyeAMtwinkEE says:

    How did you save stuff into your localhost?

    I can’t seem to have it like you do.

  6. tammerdrummer14 says:

    fixed error now i had ; sign after databse name but it aint echoing connected

  7. tammerdrummer14 says:

    i have done everything you have said it said on echo connected and my databse connection when i go to connect says
    Parse error: syntax error, unexpected T_LOGICAL_OR in C:xampphtdocsphpacadmeymysqlconnect.php on line 6 and yes im using phpacadmey to make it easy to follow

  8. lashtal says:

    try…

    mysql_select_db(“guestbook”) or die(mysql_error());

  9. SonalJain03 says:

    my database does not gets connected
    and its showing mysql_error
    problem is comming in this command :

    mysql_select_db(“guestbook”) or die(“mysql_error”);

    if i make this a comment it shows connected
    i cant understand y is it so?

  10. Cod3ZBoy says:

    dude i love you thanks mate ur the best

  11. Pivotanimatornall says:

    I love your tutorials, they’re so informative.

    Still browsing through though.

  12. omanoman98 says:

    As usual- great stuff! Thanks a lot!

Leave a Reply