Тttt - '.$start.'
' ; /* Соединение, выбор БД */ $link = mysql_connect($mysql_host, $mysql_user, $mysql_password) or die("Could not connect"); mysql_select_db($database) or die("Could not select database"); //burd mysql_query("SET NAMES cp1251"); /* Выполнение SQL query */ $query = "SELECT * FROM ".$pref."config"; $result = mysql_query($query) or die("Query failed".$query); /* Печать результатов в HTML */ print "\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { print ''.$line['name'].''; //burd //include ('themes/'.$line['theme'].'/theme.php'); include ('theme.php'); } print "
\n"; /* Освобождение resultset */ mysql_free_result($result); /* Закрытие соединения */ //mysql_close($link); //burd if( gettype($link) == "resource") { mysql_close($link); } ?>