SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: MySqli Class

  1. #1
    Always learning viveknarula's Avatar
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question MySqli Class

    Hi,

    Can anyone suggest me a good open source class which uses functions such as Insert, update using MySqli ?

    Thanks

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,192
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    You don't need any 3rd party classes as such because MySQLi in PHP is a class, see the following link.

    PHP: Mysqli - Manual

  3. #3
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  4. #4
    Always learning viveknarula's Avatar
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    418
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SgtLegend View Post
    You don't need any 3rd party classes as such because MySQLi in PHP is a class, see the following link.

    PHP: Mysqli - Manual
    Thanks for your reply,

    Basically, i am looking for wrapper class for MySqli.

    Does anyone here has used such kind of class ?

    Please Suggest.

    Thanks

  5. #5
    SitePoint Enthusiast
    Join Date
    Sep 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why do you need a wrapper? MySQLi is easy enough to use. If you need specific added functions then why not just extend MySQLi yourself?

  6. #6
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,192
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by the182guy View Post
    Why do you need a wrapper? MySQLi is easy enough to use. If you need specific added functions then why not just extend MySQLi yourself?
    I agree 100% with the182guy, creating your own small extension would be a lot faster and more efficient then using a 3rd party script. Have a look at the following page for an easy solution to extending the MySQLi class PHP: mysqli::__construct - Manual

  7. #7
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,034
    Mentioned
    65 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by viveknarula View Post
    Thanks for your reply,

    Basically, i am looking for wrapper class for MySqli.

    Does anyone here has used such kind of class ?

    Please Suggest.

    Thanks
    Are you looking for an ORM such as Doctrine perhaps? Your question is confusing because the inbuilt mysqli class is fully capable of executing SQL statments of any type for you, though I'll echo Anthony's suggestion to use PDO instead of it since PDO is less database specific.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •