PHP Classes
elePHPant
Icontem

Arrays from database: I need arrays from a database ; also json format

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All requests RSS feed  >  Arrays from database  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Arrays from database

Edit

Picture of marcelo benitez by marcelo benitez - 11 months ago (2015-03-01)

I need arrays from a database ; also json format

This request is clear and relevant.
This request is not clear or is not relevant.

+4

I need to extract rows from a database in array format

  • 1 Clarification request
  • 1. Picture of Manuel Lemos by Manuel Lemos - 11 months ago (2015-03-04) Reply

    What database are you using? Is it MySQL or something else?

    Ask clarification

    2 Recommendations

    Ultimate MySQL: MySQL database access wrapper

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +1

    Picture of Manuel Lemos by Manuel Lemos Reputation 11100 - 9 months ago (2015-05-08) Comment

    I think most MySQL database access classes can return results in arrays. If you need the results in JSON format, it is just a matter of using json_encode.

    Anyway, this class can already return the results in JSON format already.

    It also uses the MySQLi extension, so it will work in newer PHP versions. 


    Database Manager: Connect and query several databases using PDO

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +4

    Picture of Samuel Adeshina by Samuel Adeshina package author package author Reputation 775 - 9 months ago (2015-05-07) Comment

    Try out this class. It returns the result of a query as an array. The catch is that, the class is database-independent. It can work with a mysql, sql server, sqlite or even pgresql database


    Recommend package
    : 
    :