Comunidad de diseño web y desarrollo en internet online

PROBLEMA CON MATRICES EN PHP

Citar            
MensajeEscrito el 21 Abr 2009 04:41 pm
BUENOS DIAS A TODOS,
SOY NUEVO EN EL FORO Y TENGO UN GRAN PROBLEMA CON LAS MATRICES SI ME PUEDEN AYUDAR SE LES AGRADECE
TENGO EL SIGUIENTE CODIGO CON EL CUAL RESCATO DATOS DE UNA TABLA MYSQL
$c =$c+1;
$na="campo".$c;
$puv=$row["npv"];
$pv[$c]=$puv;
PERO ME TOMA SOLO EL PRIMER CARACTER DE LA CADENA QUE DEBERIA TOMAR ALGUIEN ME PUEDE AYUDAR

GRACIAS Y ESPERO QUE ALGUIEN SEPA PORQUE Y COMO ARREGLARLO

Por carbyan11

2 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Abr 2009 04:49 pm
ya revisaste si en la base de datos esta correcto o si puedes colocar el codigo completo con su contexto seria mejor saludos

Por talcual

686 de clabLevel



 

Colombia

firefox
Citar            
MensajeEscrito el 21 Abr 2009 06:07 pm
HOLA TALCUAL EN LA BASE DE DATOS LA INFORMACION ESTA BIEN INCLUSO AL PONER
$c =$c+1;
$na="campo".$c;
$puv=$row["npv"];
$pv=$puv;
ME TOMA EL VALOR CORRECTO PERO ES QUE YO NECESITO NO UN SOLO VALOR SINO COMO 120
GRACIAS DE NUEVO

Por carbyan11

2 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Abr 2009 08:09 pm
pues si te sale un solo registro es porq estas utilizando mal el where coloca el codigo a ver

Por talcual

686 de clabLevel



 

Colombia

firefox
Citar            
MensajeEscrito el 27 Abr 2009 12:49 pm
hola de nuevo,
no es que me saque un solo registro sino que de cada registro me saca solo el primer caracter
no se porque razon motivo o q se yo ahy les pego el codigo completo
if($row=mysql_fetch_array($result)){
$c=0;
echo"<td><center>ALMACEN";
do{
$c =$c+1;
$na="campo".$c;
$puv=$row["npv"];
$pv[$c]=$puv;
echo "<td>".$pv[$c];
}
while($row=mysql_fetch_array($result));

y de nuevo gracias.....

Por carbyan11

2 de clabLevel



 

firefox
Citar            
MensajeEscrito el 28 Abr 2009 08:40 pm
hola a todos los lectores del foro
les quiero agradecer el apoyo y las respuerstas que recibi este tiempo y escribo para informarles que ya solucione el problema aunque no me queda claro en que pueda influir el nombre lo unico que hice fue reemplazar $pv{$c} por $punto{$c} de nuevo muchas gracias y nos estamos hablando
suerte!!!!!!!!!!!!!1ç

Por carbyan11

2 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.