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
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
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
>}
>
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?
>
>
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){
> 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,
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)
> 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
8 matches
Mail list logo