//ид подключения
$idInclude=$allModule['id_rang'];
//ид подключенного модуля в ранге
$idModule=$allModule['rang'];
function fetchRow() {
return mysqli_fetch_row($this->resQuery);
}
foreach( $db->fetchRow() as $row ){}
// или
while( $row = $db->fetchRow() ) {}
select t1.*, group_concat( t2.name ) all_names
from table1 t1
inner join table2 t2 using (ID)
group by t1.ID
$listings = $iaDb->all(iaDb::ALL_COLUMNS_SELECTION, "`model_id` IN (". join( ', ', $parrentIds ) .")", 0, 20, 'autos');
print preg_replace( '/^(\d{3})(\d+)$/iu', '+7($1)$2', '921123456789' ); // +7(921)123456789
SELECT * FROM `banners` WHERE UNIX_TIMESTAMP(NOW()) % `rate_in_second` = 0
select * from `orders` where `sum` > 500
RewriteRule sitename/product_name_([0-9]+) sitename/products.php\?id=$1