Download TinyQueries
System Requirements
- Currently TinyQueries is only available for PHP. You need at least PHP 5.3.
- PHP's PDO database layer should be installed.
- PHP's cURL lib should be enabled
- A SQL database.
Intallation instructions
- Copy the folder TinyQueries into your php lib folder.
- Use the file config/config.template.xml to set the database credentials and save it as config.xml.
- Create a folder queries in your project folder. This folder will be used to store compiled SQL queries. In config.xml you should specify the path to this folder in
<compiler output=".."> - Include DB.php in your project:
// Include lib require_once("[path-to-libs]/TinyQueries/libs/DB.php"); // Create database object $db = new TinyQueries\DB(); // Connect to database $db->connect(); - The
$dbvariable can be used as entry point for all TinyQueries functions. Have a look at the tutorial for further info.