+ Reply to Thread
Results 1 to 4 of 4
Like Tree3Likes
  • 2 Post By cybrax
  • 1 Post By mariannaguide56

Thread: I need a basic tutorial on MySql!!!!!!!!!

  1. #1
    danvictor2041 is offline x10Hosting Member danvictor2041 is an unknown quantity at this point
    Join Date
    Sep 2010
    Posts
    7

    Thumbs up I need a basic tutorial on MySql!!!!!!!!!

    I needabasic tutorialonMySql!!!!!

  2. #2
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: I need a basic tutorial on MySql!!!!!!!!!

    longbich and dslayerx like this.
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  3. #3
    mariannaguide56 is offline x10Hosting Member mariannaguide56 is an unknown quantity at this point
    Join Date
    Nov 2011
    Posts
    6

    Re: I need a basic tutorial on MySql!!!!!!!!!

    Hi ,
    Just a "one cent" opinion .
    Don't use Mysql anymore it's outdated and according to php.net it's depreciated (in future releases it will not be supported anymore ) . If you insist to use this old extension , code your scripts according to security standards or you can be a victim of SQL-injection .
    Fortunately this web-host support the newer extensions ( mysqli and PDO ) . Use them instead , as these are the future methods of database-driven web-development . Beside all the new features , these extensions support OOP coding methodology and prepared statements . Have a look at this nice article " Using PDO Objects in PHP " .
    Happy coding
    cybrax likes this.

  4. #4
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: I need a basic tutorial on MySql!!!!!!!!!

    Every cent counts and yes the PDO syntax is a little bit tidier and does provide some new features that give an extra layers of protection.

    However much of the internal structure remains the same as old SQL plus many of the advanced tutorials and code snippets across the web have NOT been rewritten for PDO yet. So for anybody just getting started with databses would benefit from a basic understanding of SQL then move up/over to PDO once they feel more comfortable.

    PHP Code:
    # Regular mySQL
    mysql_query("INSERT INTO folks (name, addr, city) values ($name$addr$city)");


    # PDO with named placeholders
    $STH $DBH->("INSERT INTO folks (name, addr, city) value (:name, :addr, :city)"); 
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


+ Reply to Thread

Similar Threads

  1. Basic and simply wordpress tutorial
    By comunidaduser31 in forum Tutorials
    Replies: 0
    Last Post: 11-04-2011, 06:31 AM
  2. A HTML + CSS Basic Tutorial
    By Zenax in forum Tutorials
    Replies: 14
    Last Post: 09-02-2011, 01:42 PM
  3. Basic MySQL Question
    By rcresume in forum Free Hosting
    Replies: 3
    Last Post: 04-16-2010, 07:24 PM
  4. Basic sig tutorial
    By Debilana in forum Graphics & Webdesign
    Replies: 4
    Last Post: 07-03-2005, 06:01 PM
  5. mysql tutorial
    By dosworld in forum Free Hosting
    Replies: 3
    Last Post: 05-31-2005, 04:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers