View file test.php

File size: 974B
<?php

print_r($_SERVER);



























/*
include('inc/core.php');


#$res = mysql_fetch_array(mysql_query('SELECT * FROM  `sites` LIMIT 4 , 8'));
#print_r($res);

#$aql = 'SELECT * FROM  `sites` LIMIT 4 , 8';


function mysql_select($begin, $end, $table) {
	do {
		$res[$begin] = mysql_fetch_object(mysql_query('SELECT * FROM  `sites` WHERE id='.$begin.''));
		$begin++;
	} while ($begin<=$end);
	return $res;
}

#$sites = mysql_select(3,6,'sites');

#echo $sites[6]->name;

#$res = mysql_fetch_row(mysql_query('SELECT * FROM `sites` ORDER BY `rating`'));
#print_r($res);

$start = 0;
$num = 30;
$sort = '`reit` DESC';
$result = mysql_query('SELECT * FROM `sites` WHERE category=16 AND status=0 ORDER BY '.$sort.' LIMIT '.$start.', '.$num.''); 

while ($m = mysql_fetch_object($result))
{
                echo $m->id.'    '.$m->reit;
				echo '<br>';
}





#print_r($sites);




SELECT * 
FROM  `sites` 
ORDER BY  `sites`.`rating` DESC 
LIMIT 0 , 30


*/

?>