Re: odbc_fetch_row dozent work ?
| From: | Frank M. Kromann | Date: | Mon, 02 Oct 2000 15:36:00 +0000 |
| Subject: | Re: odbc_fetch_row dozent work ? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34042@lists.php.net to get a copy of this message | ||
Hi,
Have a look at the documentation: http://www.php.net/manual/function.odbc-fetch-row.php
odbc_fetch_row() returns true or false and not the row number.
- Frank
>Way dozent this code snipe work i want to display 3 rows from my sql7 database.
>
>any ide what is wrong....
>
><?
>$connect = odbc_connect("phpsweden***r", "****", "*****");
>$query = "SELECT * FROM forum";
>
>$result = odbc_exec($connect, $query);
>
>$pagerows = 3;
>
>while ( odbc_fetch_row($result) < $pagerows ) {
> $name = odbc_result($result, 3);
> print "<br>";
> print("$name");
>}
>
>
>odbc_close($connect);
>?>
>
>
>