By: Valterci
Date: 2006-10-27
Time: 13:42
|
$qtd_rec ...($qtd_rec = $TBS->MergeBlock('blk',$cnx_id,$sql))......in a function php
Hi Skrol,
Initially I want to say that you is a special person. Debtor for its attention.
Now we go to a new question:
....
$qtd_rec = $TBS->MergeBlock('blk',$cnx_id,$sql);
....
I want to use the valor(quantity of registers) of $qtd_rec in a function php in the same page. How I make?
|
By: Skrol29
Date: 2006-10-27
Time: 16:04
|
Re: $qtd_rec ...($qtd_rec = $TBS->MergeBlock('blk',$cnx_id,$sql))......in a function php
Hi,
I don't understand your question.
In your code, $qty_rec is feed with an integer value.
|
By: Valterci
Date: 2006-10-27
Time: 16:34
|
Re: $qtd_rec ...($qtd_rec = $TBS->MergeBlock('blk',$cnx_id,$sql))......in a function php
........
$qtd_rec = $TBS->MergeBlock('blk',$cnx_id,$sql);
$var_x= $qtd_rec;
if (isset($tot_1)) $tot_all[] = $tot_1;
mysql_close($cnx_id);
$TBS->Show();
.......
function f_total($Name,&$CurrRec,$RecNum) {
global $save_data, $tot_1, $tot_2, $tot_all, $data_all, $var_x;
echo $var_x ....**** this not show.....
.....
if (!isset($save_data)) {
$save_data = '';
$tot_all = array();
};
......
};
|
By: Skrol29
Date: 2006-10-27
Time: 17:01
|
Re: $qtd_rec ...($qtd_rec = $TBS->MergeBlock('blk',$cnx_id,$sql))......in a function php
Hi, you cannot do this f_total() is called during the $TBS->MergeBlock() execution. TBS cannot give the total of records before to had read them all.
If what you need is an average or a sort of aggregate calculation using the total number of records, you have to calculate it before.
|
|
Posting in progress.
Please wait...
|