Re: [PHP] why won't my array work?

2008-03-29 Thread Zoltán Németh
2008. 03. 28, péntek keltezéssel 12.28-kor Jason Pruim ezt írta: > Hi everyone :) Happy friday to all of you! > > Here's my issues, I am attempting to echo the results of mysqli query > out to my script just so I can make sure it's working right, what I'm > hoping to do in the long run is comp

Re: [PHP] why won't my array work?

2008-03-28 Thread Daniel Brown
On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: [snip!] > > $oldpasswordquery = "SELECT loginPassword, Record FROM current WHERE > loginPassword='{$oldPassHash}' AND Record='{$Record}'"; > $chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or > die("Sorry read

Re: [PHP] why won't my array work?

2008-03-28 Thread Eric Butera
On Fri, Mar 28, 2008 at 12:58 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > On Mar 28, 2008, at 12:40 PM, Eric Butera wrote: > > On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> > > wrote: > >> $chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or > >> die("Sorry r

Re: [PHP] why won't my array work?

2008-03-28 Thread Jason Pruim
On Mar 28, 2008, at 12:40 PM, Eric Butera wrote: On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: $chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or die("Sorry read failed: ". mysqli_error($chpwpostlink)); $chpwresult = $chpwold[0]; Why would you pump that

RES: [PHP] why won't my array work?

2008-03-28 Thread Thiago Pojda
That's because your loginpassWord is in another array. try $chpwrow[0]['loginPassword'] -Mensagem original- De: Jason Pruim [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 28 de março de 2008 13:29 Para: [php] PHP General List Assunto: [PHP] why won't my arra

Re: [PHP] why won't my array work?

2008-03-28 Thread Eric Butera
On Fri, Mar 28, 2008 at 12:28 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > $chpwold[] = mysqli_query($chpwpostlink, $oldpasswordquery) or > die("Sorry read failed: ". mysqli_error($chpwpostlink)); > $chpwresult = $chpwold[0]; Why would you pump that into an array instead of just calling it resu

[PHP] why won't my array work?

2008-03-28 Thread Jason Pruim
Hi everyone :) Happy friday to all of you! Here's my issues, I am attempting to echo the results of mysqli query out to my script just so I can make sure it's working right, what I'm hoping to do in the long run is compare what was typed in a text box to this info... It's for verifying a ol