Ir para conteúdo
Fórum Script Brasil

n0cturn0

Membros
  • Total de itens

    2
  • Registro em

  • Última visita

Sobre n0cturn0

n0cturn0's Achievements

0

Reputação

  1. n0cturn0

    Adword

    Obrigado...porem ainda continua sem funcionar :(
  2. n0cturn0

    Adword

    Bom galera sou iniciante em PHP Eu preciso colocar o codigo do adwords que é o seguinte <script src='http://ads10314.hotwords.com.br/show.jsp?id=10314'></script> no final das páginas de seu site, antes das tags </body> </html> A tag delimitadora <div id=HOTWordsTxt name=HOTWordsTxt> deve ser inserida no começo do texto(após o título da matéria), onde os anúncios deverão ser publicados. No final do texto você deve fechar a tag com </div>. quando coloco o mouse sobre o link da pagina java script:Carrega('pagina.php?page=page_jornal.php') até ai tudo bem, quando clico nela, abre todas as noticas cadastradas, eu gostaria de colocar o script do adword para ficar automatico já, ou seja quando a noticia for inserida, ele já colocar o script usado pelo adword, segue o codigo da pagina page_jornal.php PS: eu já inseris os "divs" do adword sem sucesso, não sei se o quero é possisvel, e desculpe-me se não fui claro. <?php session_start(); ob_start(); ?> <?php header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // HTTP/1.0 ?> <?php require_once('Connections/sysigreja.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $maxRows_jornal = 10; $pageNum_jornal = 0; if (isset($_GET['pageNum_jornal'])) { $pageNum_jornal = $_GET['pageNum_jornal']; } $startRow_jornal = $pageNum_jornal * $maxRows_jornal; $id = $_GET['id']; mysql_select_db($database_sysigreja, $sysigreja); $query_jornal = "SELECT jornal.id, jornal.`data`, jornal.titulo, jornal.id_autor, jornal.imagem, jornal.resumo, autor.nome, autor.identificacao FROM jornal INNER JOIN autor ON (jornal.id_autor = autor.id) ORDER BY jornal.id desc"; $query_limit_jornal = sprintf("%s LIMIT %d, %d", $query_jornal, $startRow_jornal, $maxRows_jornal); $jornal = mysql_query($query_limit_jornal, $sysigreja) or die(mysql_error()); $row_jornal = mysql_fetch_assoc($jornal); if (isset($_GET['totalRows_jornal'])) { $totalRows_jornal = $_GET['totalRows_jornal']; } else { $all_jornal = mysql_query($query_jornal); $totalRows_jornal = mysql_num_rows($all_jornal); } $totalPages_jornal = ceil($totalRows_jornal/$maxRows_jornal)-1; ?> <?php include("inc_title.php"); ?> <style type="text/css"> @import url("css/form.css"); @import url("css/page.css"); @import url("css/jornal.css"); </style> </head> <div id=HOTWordsTxt name=HOTWordsTxt> <? if ($totalRows_jornal > 0 ) { ?> <div id="page_view"> <?php do { ?> <? include("inc_jornal_list.php"); ?> <?php } while ($row_jornal = mysql_fetch_assoc($jornal)); ?> </div> </div> <?php } else { ?> Sem registros <?php } ?> <script src='http://ads10314.hotwords.com.br/show.jsp?id=10314'></script> </body> </html> <?php mysql_free_result($jornal); ?>
×
×
  • Criar Novo...