Ver Mensaje Individual
  #8 (permalink)  
Antiguo 29/08/2008, 01:53
txino_2
 
Fecha de Ingreso: agosto-2006
Mensajes: 173
Antigüedad: 17 años, 8 meses
Puntos: 1
Respuesta: Pop up con php

Gracias por la ayuda, haber si salgo por que me he liado

He conseguido crear el parametro, cuando situo el cursor encima del canal, este me marca el parametro con el nombre de dicho canal.

La pagina donde va la consulta y la muestra, me sale siempre vacia, como si no hiciese la consulta a la base de datos, es decir me sale la tabla pero sin los resultados deseados, pues sale vacia, este es el codigo entero de la pagina a la que va dirigido el pop-up.

Creo que el $criterio=$_GET['parametro']; no lo estoy haciendo bien, alguien me podría indicar donde cometo el error

Código PHP:
<?php require_once('../Connections/conexion1.php'); ?>
<?php
$colname_Recordset1 
"-1";
if (isset(
$_GET['parametro'])) {
  
$colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['parametro'] : addslashes($_GET['parametro']);
}
$criterio=$_GET['parametro'];
$maxRows_Recordset1 20;
$pageNum_Recordset1 0;
if (isset(
$_GET['pageNum_Recordset1'])) {
  
$pageNum_Recordset1 $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 $pageNum_Recordset1 $maxRows_Recordset1;

mysql_select_db($database_conexion1$conexion1);
$query_Recordset1 "SELECT * FROM canales WHERE name = '$criterio' ORDER BY pos DESC";
$query_limit_Recordset1 sprintf("%s LIMIT %d, %d"$query_Recordset1$startRow_Recordset1$maxRows_Recordset1);
$Recordset1 mysql_query($query_limit_Recordset1$conexion1) or die(mysql_error());
$row_Recordset1 mysql_fetch_assoc($Recordset1);

if (isset(
$_GET['totalRows_Recordset1'])) {
  
$totalRows_Recordset1 $_GET['totalRows_Recordset1'];
} else {
  
$all_Recordset1 mysql_query($query_Recordset1);
  
$totalRows_Recordset1 mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
<!--
.Estilo1 {
    font-family: Tahoma;
    font-size: 16px;
    color: #FFFFFF;
    font-weight: bold;
}
.Estilo2 {font-family: Tahoma}
.Estilo4 {font-size: 12px}
.Estilo5 {color: #000099}
.Estilo8 {font-size: 12px; font-family: Tahoma; color: #000000; font-weight: bold; }
-->
</style>
</head>

<body>
<table width="500" border="0">
  <tr>
    <td colspan="6" bgcolor="#000099"><span class="Estilo1"><?php echo $row_Recordset1['name']; ?></span></td>
  </tr>
  <tr>
    <td width="13%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>POS</strong></div></td>
    <td width="21%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>Satelite</strong></div></td>
    <td width="12%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>FR</strong></div></td>
    <td width="13%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>SR</strong></div></td>
    <td width="13%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>POL</strong></div></td>
    <td width="28%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>Encriptaci&oacute;n</strong></div></td>
  </tr><?php do { ?>
  <tr>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['pos']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="left" class="Estilo8"><?php echo $row_Recordset1['sat']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['fr']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['sb']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['po']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="left" class="Estilo8"><?php echo $row_Recordset1['en']; ?></div></td>
  </tr>
  <tr>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['pos1']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="left" class="Estilo8"><?php echo $row_Recordset1['sat1']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['fr1']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['sb1']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['po1']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="left" class="Estilo8"><?php echo $row_Recordset1['en1']; ?></div></td>
  </tr>
  <tr>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['pos2']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="left" class="Estilo8"><?php echo $row_Recordset1['sat2']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['fr2']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['sb2']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="center" class="Estilo8"><?php echo $row_Recordset1['po2']; ?></div></td>
    <td bgcolor="#E2E2E2"><div align="left" class="Estilo8"><?php echo $row_Recordset1['en2']; ?></div></td>
</tr>    <?php } while ($row_Recordset1 mysql_fetch_assoc($Recordset1)); ?>
</table>
</body>
</html>
<?php
mysql_free_result
($Recordset1);
?>
Muchas gracias por vuestra ayuda

Última edición por txino_2; 29/08/2008 a las 02:45