Sunday, 13 November 2011

PHP with Mysql

Retweet this button on every post blogger
Mysql is the world's most popular open source database System ,with its superior speed, reliability, and ease of use, MySQL has become the preferred choice for Web, Web 2.0 today's millions  database based applications runs on mysql for their data storage needs, learning mysql is relatively easy and has a several advantage over other paid RDBMS software's.


PHP provide a large base of its function repository for handling mysql operation efficiently. these functions allow you to access MySQL database servers.

The structure of PHP and Mysql connectivity.
 
 As you can determine from the above diagram there is three boxes


  1. One is a client is running  a web Browser and making request to web server.
  2. Second is a Web server that handle clients request and make Appropriate request to Web Database software running at the extreme end of the structure it stores all the data. 
you can learn more about Mysql and can see its documentation at Mysql Reference .

If you have installed WAMP or XAMPP Bundle on your Ssystem Mysql comes with that automatically.

Five Important commands of MySQL.
  1. mysql_connect("host_name","User","Password") 
        this PHP function open's a MySQL Connection With the three parameters  passed  called.         host_name : - The name of host on which your server is running .
        user_name :- user name of the Database.
         password: - password of the database.

     2. mysql_select _db("db_name",resource link);
         Select the database with the provide resource returned by the mysql_connect() call, by                          default connect with the last opened coonection.
   
    3. mysql_query("Query",resource link)
        sends a unique query (multiple queries are not supported) to the currently active database on the     server      that's associated with the specified link_identifier.
   
    4. mysql_fetch_array(resource $result, $result_type)
        Fetch a result row as an associative array, a numeric array, or both
    5.  mysql_num_rows( resource $result )
         Get number of rows in result.retrieves the number of rows from a result set. This command is only         valid for statements like SELECT or SHOW that return an actual result set.



19 comments:

  1. Nice but if you cant understand this article, you should try PHP beginners first step: http://www.webdevelopersahil.com/2013/07/introduction-to-php-first-step-for-php.html
    A very well explained tutorial. Good lucj!

    Kind regards,
    Sahil Sharma
    www.webdevelopersahil.com

    ReplyDelete
  2. Thanks for advising about function repository for handling mysql operation efficiently. It will quickly connect for PHP Web Application Development and give you upper-hand in better achievement.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This engaging article is a needed corrective, a whirlwind tour of the latest developments in Open source database, Database based applications, Preferred choice, and other fields. Ravi make a compelling case for optimism over dread as we face the exhilarating unknown.
    online college papers

    ReplyDelete
  5. Learn PHP for Free: PHP with Mysql”, Ravi your article is interesting and I have forwarded it to some of my friends. Even if it isn’t saying anything particularly new, what it does say is worth repeating, and is rarely said in such succinct form.
    custom research paper service

    ReplyDelete
  6. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..
    Study Abroad Consultants in Chennai | Study in Germany Consultants in Chennai | Germany Education Consultants in Chennai

    ReplyDelete
  7. Great post!! This can be one particular of the most useful blogs We’ve ever arrive across on this subject. Basically Wonderful. I am also a specialist in this topic so I can understand your hard work.
    Architects in Chennai

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. Great and really helpful article! Adding to the conversation, providing more information, or expressing a new point of view...Nice information and updates. Really i like it and everyday am visiting your site..
    Peer Reviewed Journals
    Journal Of Mathematics
    Conference publication
    Journal Of Physics
    Journal Of Education

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great information. I really thank u for sharing a very effective information.
    PHP Course in Chennai
    Dot Net Training in Chennai
    Java Training Institute in Chennai
    Software Testing Training in Chennai

    ReplyDelete
  12. Get all latest tech updates, coding and programming Learn latest technology, software development skills,

    b.tech, MCA and BCA computer programming training.

    ReplyDelete
  13. Oh, this is such good content I’m just searching for actually this kind of stuff your article was really helpful. Thank you so much for this. Hire tablet is a platform where you can get all your favorite technical devices like mobile, tablets, laptops, and many more. if you think about money let me, tell you we provided all these services at the rent you can complete your work anytime.
    tablet hire

    ReplyDelete