Foros del Web » Programando para Internet » PHP »

alguien me puede ayudar con este script?

Estas en el tema de alguien me puede ayudar con este script? en el foro de PHP en Foros del Web. saludos, tengo algo asi <?php mysql_connect ("localhost", "root", "wertyhead"); mysql_select_db ("bd"); $consulta = mysql_query("select * from tabla"); while ($row=mysql_fetch_array($consulta)) {?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> ...
  #1 (permalink)  
Antiguo 09/06/2006, 17:27
 
Fecha de Ingreso: febrero-2006
Mensajes: 79
Antigüedad: 18 años, 2 meses
Puntos: 0
alguien me puede ayudar con este script?

saludos, tengo algo asi

<?php
mysql_connect ("localhost", "root", "wertyhead");
mysql_select_db ("bd");
$consulta = mysql_query("select * from tabla");
while ($row=mysql_fetch_array($consulta)) {?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? echo "<input type=\"radio\" name=\"lotes\" value=\"".$row['lote']."\">";} ?></td>
</tr>
</table>

me esta mostrando los radio botones como debe ser, segun los valores, pero no me esta mostrando el valor, solo aparecen los radiobotones, alguien me sugiere algo, que podria estar pasando, por que no me muestra los valores? bueno gracias

Última edición por wertyhead; 19/07/2006 a las 09:57
  #2 (permalink)  
Antiguo 09/06/2006, 17:29
 
Fecha de Ingreso: febrero-2006
Mensajes: 79
Antigüedad: 18 años, 2 meses
Puntos: 0
perdon, cometi un error, este seria el script

<?php
mysql_connect ("localhost", "root", "wertyhead");
mysql_select_db ("bbdd");
$consulta = mysql_query("select * from tabla");
while ($row=mysql_fetch_array($consulta)) {?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><? echo "<input type=\"radio\" name=\"lotes\" value=\"".$row['lote']."\">";} ?></td>
</tr>
</table>

Última edición por wertyhead; 19/07/2006 a las 09:58
  #3 (permalink)  
Antiguo 09/06/2006, 17:33
MindPaniC
Invitado
 
Mensajes: n/a
Puntos:
prueba algo asi:

Código PHP:
<?php
mysql_connect 
("localhost""root""wertyhead");
mysql_select_db ("bd");
$bavaria mysql_query("select * from tabla");
while (
$row=mysql_fetch_array($bavaria)) {
$lote "$row[lote]";

echo 
"<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td><input type=\"radio\" name=\"lotes\" value=\"".$lote."\"></td></tr></table>";     
    } 
?>
  #4 (permalink)  
Antiguo 09/06/2006, 17:37
Avatar de richard20  
Fecha de Ingreso: marzo-2006
Mensajes: 139
Antigüedad: 18 años
Puntos: 0
Prueba Asi:

<?php
mysql_connect ("localhost", "root", "xxxxxxxxx");
mysql_select_db ("xxxxxxxxxxx");
$con = mysql_query("select * from xxxxxxxx");
while ($row=mysql_fetch_array($con))
{
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="lotes" value="<? echo $row['lote']?>">
<? echo $row['Nombre']?></td>
</tr>
</table>
<?
}
?>

Última edición por richard20; 07/09/2006 a las 08:22
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 13:50.