Re: [PHP] unexpected t varable

2002-10-05 Thread Gary
Marek Kilimajer wrote: > Sorry, my fault, I forgot ) before {, > This line is right: > if( $res->numRows() ) { > Yeah, I figured it out after walking away from it for a while if( $res->numRows() > 0) { while ($row = $res->fetchRow()){ $id = $row[0]; $question = $row[1]; $re

Re: [PHP] unexpected t varable

2002-10-05 Thread Marek Kilimajer
Sorry, my fault, I forgot ) before {, This line is right: if( $res->numRows() ) { Gary wrote: > Doesn't work, get unexpected { for if( $res->numRows() {. If I remove > braces or rearrange them it fall apart piece by piece. > > Thanks for the try > Gary > > Marek Kilimajer wrote: > >> what about

Re: [PHP] unexpected t varable

2002-10-05 Thread Gary
Doesn't work, get unexpected { for if( $res->numRows() {. If I remove braces or rearrange them it fall apart piece by piece. Thanks for the try Gary Marek Kilimajer wrote: > what about > > if( $res->numRows() { >while( $row = $res->fetchRows() ){ >... do what you've got to do >} >

Re: [PHP] unexpected t varable

2002-10-05 Thread Marek Kilimajer
what about if( $res->numRows() { while( $row = $res->fetchRows() ){ ... do what you've got to do } } else { ... no rows } Gary wrote: > John W. Holmes wrote: > >>> John W. Holmes wrote: >>> >>> > Can someone tell where I messed up on this code snippit? > >

Re: [PHP] unexpected t varable

2002-10-04 Thread Gary
John W. Holmes wrote: >>John W. Holmes wrote: >> >> Can someone tell where I messed up on this code snippit? >>>Your first mistake is not giving us the full error and the line >>>number... >>> >>> >>> >>> if ($res->numRows() > 0){

RE: [PHP] unexpected t varable

2002-10-04 Thread John W. Holmes
> John W. Holmes wrote: > >>Can someone tell where I messed up on this code snippit? > > > > > > Your first mistake is not giving us the full error and the line > > number... > > > > > >>if ($res->numRows() > 0){ > >>list($id, $question, $responce1, > > > > $responce2,

Re: [PHP] unexpected t varable

2002-10-04 Thread Gary
John W. Holmes wrote: >>Can someone tell where I messed up on this code snippit? > > > Your first mistake is not giving us the full error and the line > number... > > >>if ($res->numRows() > 0){ >> list($id, $question, $responce1, > > $responce2, > >>$responce3)

RE: [PHP] unexpected t varable

2002-10-04 Thread John W. Holmes
> Can someone tell where I messed up on this code snippit? Your first mistake is not giving us the full error and the line number... > if ($res->numRows() > 0){ > list($id, $question, $responce1, $responce2, > $responce3) = $res->fetchRows() and you're missing a

[PHP] unexpected t varable

2002-10-04 Thread Gary
Can someone tell where I messed up on this code snippit? if ($res->numRows() > 0){ list($id, $question, $responce1, $responce2, $responce3) = $res->fetchRows() $id = $row[0]; $question = $row[1];