GroundZero
Programmer
I am trying to build a generic script and for that I would need the odbc_fetch_field function. I have done something similar but it's not executing it.
$NbFields=odbc_num_fields($result);
$i=1;
$j=1;
while(odbc_fetch_row($result,$i));
{
while ($j <=$NbFields);
{
$A=odbc_field_name($result,$j);
$B=urlencode(odbc_result($result,$j));
print("$A$i=$B&"
;
$j++;
}
$i++;
}
what is happening when I run it is a time out but I can't figure out why?
can anyone give a hand on this one?
Also why did I had to put a semicolon(
at the end of my while loop for it to work?
thank you in advance,
GroundZero Your soul is imperfect
Life is difficult...
Now guess why we're here
$NbFields=odbc_num_fields($result);
$i=1;
$j=1;
while(odbc_fetch_row($result,$i));
{
while ($j <=$NbFields);
{
$A=odbc_field_name($result,$j);
$B=urlencode(odbc_result($result,$j));
print("$A$i=$B&"
$j++;
}
$i++;
}
what is happening when I run it is a time out but I can't figure out why?
can anyone give a hand on this one?
Also why did I had to put a semicolon(
thank you in advance,
GroundZero Your soul is imperfect
Life is difficult...
Now guess why we're here