Bug #11094: problem printing memo field
| From: | vladb38 at hotmail dot com | Date: | Thu, 24 May 2001 17:39:38 +0000 |
| Subject: | Bug #11094: problem printing memo field | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56653@lists.php.net to get a copy of this message | ||
From: vladb38@hotmail.com
Operating system: RedHat 7.1
PHP version: 4.0.4pl1
PHP Bug Type: InterBase related
Bug description: problem printing memo field
I have tried to print a text from a memo field using the
following code. Why doesn't it work. I am new to PHP so
this could be a misundertanding from my part. Thank you
for any help.
<?
$host="...";
$username="SYSDBA";
$password="masterkey";
$dbh = ibase_connect ($host, $username, $password);
$stmt = 'SELECT * FROM THETABLE';
$sth = ibase_query ($dbh, $stmt);
echo('<table border=1>');
//while ($row = ibase_fetch_object ($sth)) {
$row = ibase_fetch_object ($sth);
echo('<tr>');
echo('<td> <font color=blue>');
print $row->MEMOTEXT . "\n" ;
echo('</font> </td>');
echo('</tr>');
//}
echo('</table>');
ibase_close ($dbh);
?>
--
Edit Bug report at: http://bugs.php.net/?id=11094&edit=1