Location: PHPKode > scripts > Crystal > Crystal/Query/Mysql/Count.php
<?php
/**
 * Crystal DBAL
 *
 * An open source application for database manipulation
 *
 * @package		Crystal DBAL
 * @author		Martin Rusev
 * @link		http://crystal.martinrusev.net
 * @since		Version 0.1
 * @version     0.1
 */

// ------------------------------------------------------------------------
class Crystal_Query_Mysql_Count
{

    

    function __construct($table)
    {
				
       $this->count = "SELECT COUNT(*) as total FROM" . Crystal_Helper_Mysql::add_apostrophe($table);
     	     
    }

    public function __toString() 
	{
        return $this->count;
    }
    
    
}
Return current item: Crystal