PHP Tutorials: Register & Login (Part 4): Database Connection

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

Creating our core folder, connecting to our MySQL server and selecting our database. Register & Login series playlist is available at: www.youtube.com Official website phpacademy.org Support Forum http Follow us on Twitter! twitter.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

20 Responses to “PHP Tutorials: Register & Login (Part 4): Database Connection”

  1. MrPawnyeta Says:

    This really helps my project in my school

  2. miggysatria Says:

    ya…
    its just about loading time
    thanks

  3. 21LucasL Says:

    are you using your xamp?

  4. ollierose99 Says:

    where would i include init.php if i didn’t break the code up. would i put it in the head tags or body tags

  5. miggysatria Says:

    hello alex,

    in head.php there is screen.css but why the css cann’t run while I preview the index.php in mybrowser

    thanks bfore…

  6. Spuddie95 Says:

    great job!!

  7. Spuddie95 Says:

    yous are all just jelgious…

  8. PrefixUnited Says:

    noob, you can’t code.

  9. sam62612 Says:

    excellent

  10. Philip Ekman Says:

    I resolved it at last. The problem lied within the index.php file, I needed to put include ‘core/init.php’; before include ‘core/overall/header.php’;.

  11. Philip Ekman Says:

    I´m getting the same error message as abhishekkdubey20.

    “Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/lr/includes/overall/header.php:3) in /Applications/XAMPP/xamppfiles/htdocs/lr/core/init.php on line 2”

    Anyone know how to cope with this ? Thanks in advance, btw great tutorials =)

  12. John Peterson Says:

    I am not getting an error when trying to force one by changing the data base name… What gives?

  13. MrYourMedia Says:

    on 5:55 why not include that in heder

  14. FakeTheHuman Says:

    Possibly use PDO instead of mysql_*? 🙂
    I’ve heard that mysql_* functions are being deprecated and plus PDO is much more secure.
    Example:
    $dbh = new PDO(“mysql:host=localhost;dbname=database_name”, “mysql_user”, “mysql_password);
    And querys are like this: $q = $dbh->query(“SELECT * FROM table”);

  15. royal123456royal Says:

    Very organised. This gives the website a professional look!

    Thanks Alex!

  16. abhishekkdubey20 Says:

    session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at C:xampphtdocsphpacademytutorialslrindex.php:1) in C:xampphtdocsphpacademytutorialslrcoreint.php on line 2

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at C:xampphtdocsphpacademytutorialslrindex.php:1) in C:xampphtdocsphpacademytutorialslrcoreint.php on line 2

    pls help me..

  17. thecodingguys Says:

    hello..

  18. lucas123domal Says:

    lets go subtitles o

  19. phpacademy Says:

    We do this in most tutorials.

  20. YBTOY Says:

    First and a core folder… BetterPHP again 🙂

Leave a Reply

*