| THC en colaboración
con Dope Britannia presentan las noticias más actuales de cannabis
para golpear la red. Actualizadas dinámicamente desde la base
de datos de Dope
Britannia por favor, visite ésta página a menudo
para leer las noticias de cannabis más recientes.
No stories were found");
if (empty($limit)) $limit = 0;
if($page == 'lastpage') { $limit = $limit - 25;
if ($limit <= 0) $limit = 0;
}
if($page == 'nextpage') { $limit = $limit + 25;
}
$limit_local1 = $limit;
$limit_local2 = $limit;
echo " | ";
if(($limit_local1-25) >= 0) echo "";
echo " | ";
if(($num_stories - ($limit_local2+25)) > 0) echo "";
echo " | ";
$result= mysql_query("SELECT articleid, author, DATE_FORMAT(date, '%d/%m/%y')AS eddate, headline FROM articles WHERE category LIKE 'news' ORDER BY date DESC LIMIT $limit,25", $link_id);
if (!$result) die(sql_error());echo $article_id;
while($query_data = mysql_fetch_array($result)){
$article_id = $query_data["articleid"];
$formatteddate = $query_data["eddate"];
$headline = $query_data["headline"];
$author = $query_data["author"];
echo " $headline - $formatteddate ";
}
echo "| ";
if(($limit_local1-25) >= 0) echo "";
echo " | ";
if(($num_stories - ($limit_local2+25)) > 0) echo "";
echo " | ";
echo " | ";
if($page == 'lastpage') { $limit = $limit - 25;
if ($limit <= 0) $limit = 0;
}
if($page == 'nextpage') { $limit = $limit + 25;
}
if (isset($sel_article_id)) {
error_reporting(0);
$link_id = db_connect();
if(!link_id) die(sql_error());
$result= mysql_query("SELECT articleid, author, auth_email, DATE_FORMAT(date, '%D %M %Y')AS eddate, headline, subhead, body FROM articles WHERE articleid LIKE $sel_article_id", $link_id);
if (!$result) die(sql_error());
while($query_data = mysql_fetch_array($result)){
$author = $query_data["author"];
$auth_email = $query_data["auth_email"];
$eddate = $query_data["eddate"];
$headline = $query_data["headline"];
$subhead= $query_data["subhead"];
$body = $query_data["body"];
echo "$headline ";
echo "$subhead";
echo "$body ";
echo "$eddate
";
}
}
else {
error_reporting(0);
$link_id = db_connect();
if(!link_id) die(sql_error());
$result= mysql_query("SELECT articleid, author, auth_email, DATE_FORMAT(date, '%D %M %Y')AS eddate, headline, subhead, body, imagelinkone FROM articles WHERE category LIKE 'news' ORDER BY date DESC LIMIT 0,1", $link_id);
if (!$result) die(sql_error());
while($query_data = mysql_fetch_array($result)){
$author = $query_data["author"];
$auth_email = $query_data["auth_email"];
$eddate = $query_data["eddate"];
$headline = $query_data["headline"];
$subhead= $query_data["subhead"];
$body = $query_data["body"];
$time = $query_date["imagelinkone"];
echo "$headline ";
echo "$subhead";
echo "$body ";
echo "$eddate";
}
}
echo "
";
error_reporting(0);
$link_id = db_connect();
if(!link_id) die(sql_error());
$result= mysql_query("SELECT * FROM counters WHERE counter_name LIKE 'ad_counter'", $link_id);
if (!$result) die(sql_error());
while (
$query_data = mysql_fetch_array($result)) {
$counter_id = $query_data["counter_id"];
$counter_count = $query_data["counter_count"];
$counter_name = $query_data["counter_name"];
}
$result= mysql_query("SELECT * FROM ad_rotation", $link_id);
if (!$result) die(sql_error());
$total_ads = mysql_num_rows($result);
if ($counter_count > $total_ads) $counter_count = "1";
$result= mysql_query("SELECT * FROM ad_rotation WHERE ad_id LIKE '$counter_count'", $link_id);
if (!$result) die(sql_error());
$query_data = mysql_fetch_array($result);
$ad_src = $query_data["ad_src"];
$ad_url = $query_data["ad_url"];
$ad_alt_text = $query_data["ad_alt_text"];
$counter_count = ($counter_count+1);
$result = mysql_query("REPLACE INTO counters VALUES('$counter_id', '$counter_name', '$counter_count')");
if (!$result) die(sql_error());
?>
|