/**
* PHP version 5
*
* This source file is subject to version 2.1 of the GNU Lesser General Public
* License, that is bundled with this package in the file COPYING, available
* through the world wide web at the following URI:
* http://www.gnu.org/copyleft/lesser.html.
*
* <i>smysqli class </i> Singelton Improved Mysql<br />
* this is a very simple wrapper class that uses singleton pattern to avoid creating multiple links
* in a single application to mysql database<br />
*
* an example of how to use this class :
* <code>
* //creating DB object
* $dbObject=smysqli::getInstance('localhost','arash','arash','usersdb');
* //sending query to DB
* $dbObject->query('select * from tblUsers');
* //using object property
* echo $dbObject->affected_rows;
* </code>
* @package DataBase
* @author Arash Mikaeili <arash@iranphp.net>
* @copyright 2005 iranphp.net
* @license LGPL License 2.1 <http://www.gnu.org/copyleft/lesser.html>
* @version SVN $Id$
* @link http://www.iranphp.net
*/