Problem with easyphp and DBM i think .....
| From: | VirtualSolution [Virtualsolution.net] | Date: | Thu, 19 Apr 2001 11:45:58 +0000 |
| Subject: | Problem with easyphp and DBM i think ..... | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2824@lists.php.net to get a copy of this message | ||
Hi , I'm enrico from Italy and i have found this problem
whith this simple test script:
( I have installed "easyphp 1.2" on a Win2000Professional whith AMD K7 Athlon 700Mhz)
<?php
$dbh = dbmopen("prodotti","c")or die("impossibile aprire il db");
dbminsert ($dbh, "pantaloni", "50.000");
dbminsert ($dbh, "gins", "1.000.000");
dbminsert ($dbh, "magliette", "2.000.000");
dbminsert ($dbh, "scarpe", "3.000.000");
dbminsert ($dbh, "lacci", "500.000");
dbmclose($dbh);
?>
<?php
$dbh = dbmopen("prodotti","c")or die("impossibile aprire il db");
$key = dbmfirstkey($dbh);
while ($key !="")
{
$value = dbmfetch($dbh, $key);
print "<tr><td>$key </td>";
print "<td>$value</td></tr>";
$key=dbmnextkey($dbh,$key);
}dbmclose($dbh);
?>
Why the autput is wrong??
Prodotti Prezzi
pantaloni 0.0004
gins .000.0009
magliette .000.0006
scarpe 3.000.000
lacci 500.000
(this cript on a Cobalt server with linux os work good!!!!)
Thanks a lot....