Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

odbc_fetch_field function?

Status
Not open for further replies.

GroundZero

Programmer
Feb 1, 2001
28
CA
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(&quot;$A$i=$B&&quot;);
$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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top