PHP Tutorial – 24 – Connecting to MySQL Database

Posted by: Admin  :  Category: Mysql

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

wanna watch this tutorial in high def? www.youtube.com there ya go! and don’t forget to subscribe to my channel to get all the latest videos! thenewboston.com

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

25 Responses to “PHP Tutorial – 24 – Connecting to MySQL Database”

  1. Drizien Says:

    There appears to be an error in his code.
    the doublepoint in the die thinghy should be within the quotation marks.

  2. Drizien Says:

    There appears to be an error in his code.
    the doublepoint in the die thinghy should be within the quotation marks. liek this:
    die(‘Not connected ::’ . mysql_error());

  3. Drizien Says:

    @frankenstein01 you can donate on his site =p

  4. vickymoto1 Says:

    I tried the same code, But i am getting an error shown below:
    Not Connected, Can’t connect to MySQL server on ‘localhost’ (10061)

  5. vickymoto1 Says:

    good one

  6. godonholiday Says:

    Is it better to use prepared statements to stop injections?

  7. Th3LastT3mplar Says:

    Please help me beacause it says:

    Parse error: syntax error, unexpected ‘:’ in /home/a2292773/public_html/con­nectionfile.php on line 5

    I wrote everything like BUCKY .

  8. LordOfCa Says:

    YouTube somehow gives an error when i try to post the comment syntax.

  9. slushfilmz Says:

    how do you add comments in html?

  10. MovieMad007 Says:

    @frankenstein01 — don’t encourage him that’ll only make him even more “bigheaded” than he is already! he may be hot on this stuff – but his previous videos he assumed everybody was an idiot! Now i have just finished uni and graduated as a software engineer – even our lecturers were not as condascending as this guy! He may be hot and know his stuff – but there is more to communication than that! This vid went up in 2008 – if he were not so condascending his views would be ” > than 69,000″!

  11. TyRATnt Says:

    Also # works the same way as // does.

  12. izzova24 Says:

    @lordzzcabe i solved it, try changing the password.

  13. frankenstein01 Says:

    I feel like I should be paying you for this

  14. lordzzcabe Says:

    @izzova24 i m getting the same error :S:S:S any body know how do we fix this ??

  15. samnthikumari Says:

    If you can meet naughty women benaughtyman.info

  16. izzova24 Says:

    man can you help me with this shit error?

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘database’@’localhost’ (using password: YES) in C:xampphtdocsfolderzz.php on line 3
    Not connected: Access denied for user ‘database’@’localhost’ (using password: YES)

    i was using the correct password(root), but this is what i get
    oh yes, this is the line 3 $dbc = mysql_connect(‘localhost’,’database’,’root’);

  17. vancar6 Says:

    I was using 3schools to learn PHP, and i got up to Email Error and SQL tutorials and some of the code does work but does not have the rest of the code.
    I love your tutorials.

  18. samiwistler Says:

    Learning PHP is easy, following the changes is tough

  19. samiwistler Says:

    PHP gurus

  20. MARGRETDOLORES Says:

    Heck out the thousands of profiles for Naughty women mworld5.info

  21. formchoi2190 Says:

    ur vids r awesome!

  22. arlenewatson1 Says:

    Try to meet bbw women in your area naneedj.info

  23. malanbrandi Says:

    Be cool man sexy naughty Asian women oneman4u.info

  24. elballyawoman Says:

    Try to change your life ** rockmycity.info **

  25. autom4 Says:

    lol’d at about 4:00 = underslash.. 😛

Leave a Reply

*