Jquery datatable, php, Sqlite

Posted on 2012-08-13
Last Modified: 2012-08-16
  I would like to use the jquery database ( However, my tables are  huge so, I will have to use the server side processing option.

I found this script on the website but is written for MYSQL.

The script uses some function that are not available in SQLite (SQL_CALC_FOUND_ROWS ,SELECT FOUND_ROWS())

How can I convert this script to use SQLITE.
Question by:SiemensSEN
    1 Comment
    LVL 15

    Accepted Solution

    you can remove the SQL_CALC_FOUND_ROWS from the query and things should be fine

           * SQL queries
           * Get data to display
          $sQuery = "
                SELECT `".str_replace(" , ", " ", implode("`, `", $aColumns))."`
                FROM   $sTable

    And for SELECT FOUND_ROWS(), Just run a simple count query

    /* Data set length after filtering */
          $sQuery = " SELECT count(*)  FROM   $sTable      ";

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
    SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now