Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/07/2004, 02:16
Avatar de xcorpion
xcorpion
 
Fecha de Ingreso: octubre-2003
Ubicación: m é x i c o
Mensajes: 676
Antigüedad: 20 años, 6 meses
Puntos: 4
si se supone que ver_oferta.php?$string_query es el link puedes cambiarlo como te dije por :

<a href="javascript:popup('ver_oferta.php?$string_que ry',300,240)">videos musicales</a>

y antes del este ciclo while pones el javascript.
el codigo completo quedaria asi:

Código PHP:
<script language="javascript1.2">
function popup(url, long, alt) {
opciones = "width=" + long + ",height=" + alt + ",directories=no,location=no,menubar=no,scrollbars= yes,status=no,toolbar=no,resizable=no";
preview = window.open(url, "_blank", opciones);
}
</script>
<?
.....
while (
$row=mysql_fetch_array($result))
{
echo
"<table>"
echo
"<tr>";
$titulo=$row['tit'];
$descripcion=$row['des'];
$precio=$row['pre'];
$string_query=base64_encode("titulo=$titulo&descripcion=$descripcion&precio=$precio");
echo 
"<td align='center' vAlign=top><a href ='javascript:popup(\"ver_oferta.php?$string_query\",400,340)'><b>"$row['tit']."</b><br>";
echo
"</a><br>";
echo
"</td>";
echo
"</tr>";
echo
"</table>";
}
.....