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

Ya lo tengo, por si alguien no sabe como hacerlo lo dejo aqui

Código PHP:
<?php
$colname_Recordset1 
"-1";
if (isset(
$_GET['canal'])) {
  
$colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['canal'] : addslashes($_GET['canal']);
}
mysql_select_db($database_conexion1$conexion1);
$query_Recordset1 sprintf("SELECT * FROM canales WHERE canal = '%s' ORDER BY pos DESC"$colname_Recordset1);
$Recordset1 mysql_query($query_Recordset1$conexion1) or die(mysql_error());
$row_Recordset1 mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 mysql_num_rows($Recordset1);
?><!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="652" border="0">
  <tr>
    <td colspan="6" bgcolor="#000099"><span class="Estilo1"><?php echo $row_Recordset1['name']; ?></span></td>
  </tr>
  <tr>
    <td width="16%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>POS</strong></div></td>
    <td width="16%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>Satelite</strong></div></td>
    <td width="14%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>FR</strong></div></td>
    <td width="15%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>SR</strong></div></td>
    <td width="15%" bgcolor="#E2E2E2"><div align="center" class="Estilo5 Estilo4 Estilo2"><strong>POL</strong></div></td>
    <td width="24%" 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>    <?php } while ($row_Recordset1 mysql_fetch_assoc($Recordset1)); ?>
</table>
</body>
</html>
<?php
mysql_free_result
($Recordset1);
?>