Re: Printing sql rows

From: Date: Wed, 10 Oct 2001 01:23:28 +0000
Subject: Re: Printing sql rows
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70558@lists.php.net to get a copy of this message
You are probably forgetting the odbc_fetch_row loop... $connectionstring = odbc_connect("odbcsourcename", "", ""); $Query = "SELECT Row1, Row2 FROM TableName"; $queryexe = odbc_do($connectionstring, $Query); while(odbc_fetch_row($queryexe)) { $Row1 = odbc_result($queryexe, 1); $Row2 = odbc_result($queryexe, 2); print "$Row1 - $Row2\n"; } odbc_close($connectionstring); "Devon" <martin@enet21.com.au> wrote in message news:20011010011057.94133.qmail@pb1.pair.com... > I can print seperate coloums out of a mysql database using PHP but I cant > print out seperate rows. Any ideas? > > Cheers > >

« previous php.general (#70558) next »