It's probably not the cause of your problem (I know little to nothing about
Interbase), but why the if... loop in your code?

Your if:

 if ($val < $NumCases)

does the same thing as your for:

for ($val = 0;  $val < $NumCases; ++$val)

Unless of course you wanted it that way...



--
Plutarck
Should be working on something...
...but forgot what it was.

""Wade Halsey"" <[EMAIL PROTECTED]> wrote in message
002e01c0bc4d$2ebfcf80$256410ac@wadeh">news:002e01c0bc4d$2ebfcf80$256410ac@wadeh...
Hi

I have the following code

/*number of times to run*/
$NumCases = $HTTP_POST_VARS['txtNumCases'];
/*execute the sql*/
$sqlLargeRequest = sqlexecute($LargeRequest);

for ($val = 0;  $val < $NumCases; ++$val){
 if ($val < $NumCases) {


$details = sqlFetchObject( $sqlLargeRequest );

$AccNo = $details ->ACCNO;
etc etc


It executes the correct number of times but doesnt move to the next
record.Im using an Interbase DB.  Any ideas??

TIA
Wade




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to