For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > November 2004 > Re: [PHP-DB] Fixing this code to show all variables!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Fixing this code to show all variables!
Juan Stiller

2004-11-01, 3:55 pm

Thanks for the response,

Now its fixed, and this is the output for the code:

&Id=28&Apellido=ff&Nombre=asdfsdf&Dni=fsdf&Telefono=ff&Dia=1&Mes=12&Ano=2004&Hora=9&Minutos=50&Abogado=Dra.
Claudia I.
Gorno&Nombre=asdfsdf&Asunto=asdfsd&Donde=Guia Barrial
Palermo&Id=26&Apellido=Sarasa&Nombre=Exequiel&Dni=23453425&Telefono=423452345&Dia=2&Mes=2&Ano=2005&Hora=12&Minutos=30&Abogado=Dra.
Claudia I.
Gorno&Nombre=Exequiel&Asunto=3452345&Donde=Guia
Barrial
Palermo&Id=27&Apellido=Zarlanga&Nombre=Washington&Dni=4234235&Telefono=1234234&Dia=10&Mes=2&Ano=2004&Hora=18&Minutos=15&Abogado=Dra.
Claudia I.
Gorno&Nombre=Washington&Asunto=fsdf&Donde=RadioDiez
- Sensacion Termica

But this is not showing the result as:
&Id1=28&Apellido1=whatever.....
So im having the same problem i had before? the
variables are been overwritten over and over again.
What am i doing wrong?




--- "Demigod at SD41.net" <demigod@sd41.net>
escribió:
> Here's your hint:
> The variable you are passing to mysql_num_rows is
> undefined. If what
> you want is the number of rows returned by
> mysql_query, then you need to
> pass $result1 to mysql_num_rows instead. Also note
> that you again use
> the undefined $qr as the argument for
> mysql_fetch_array two lines later.
>








___________________________________
¡Llevate a Yahoo! en tu Unifón!
Ahora podés usar Yahoo! Messenger en tu Unifón, en cualquier momento y lugar.
Encontrá más información en: http://ar.mobile.yahoo.com/sms.html
Gabino Travassos

2004-11-01, 3:55 pm

Hello Juan

If I declare &Telefono=4141414 in one line and in the next line I declare
&Telefono=31453531, then I have overwritten the first variable.

What you need to change is the name of the variable. You need to append your
ID number to the variable name.

So &Telefono01=4141414 and &Telefono02=31453531 will be two differently
named variables.

Luck

Gabino
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com