ahora no me da error alguno pero no funciona ??!! y el print dice : Array ( )
Código PHP:
print_r($_GET);
ob_start(); // no actua ??
if(isset($_GET['action']) && $_GET['action'] == "simulation") {
$sim->simulation_search($_POST['input']);
}
$smarty -> display($cfg->template.'head.tpl');
// show index
if(empty($_GET['video']) && empty($_GET['video_id'])) {
$_GET['video'] = $sim->random_index();
}
function generate_tags($how_much) {
$this->results = mysql_query("SELECT * FROM `tags` order by rand() LIMIT $how_much");
$tag = "";
while($this->q=mysql_fetch_array ($this->results)) {
$tag .= $this->q['tag'].'||';
}
$tag = explode('||', $tag, -1);
$tag = str_replace('+', ' ', $tag);
return $tag;
}
Tengo mal esto ob_start(); // no actua ?? ???