I'm trying to show binary data I put in a db thanks to Florian Dittmer and his article, but I got some problems, I'm using the next: please could you tell me how to correct it?
<?php
require("db_mysql.inc");
class OFFERTE_DB extends DB_Sql {
var $Host = "******";
var $Database = "******";
var $User = "******";
var $Password = "******";
}
$getOfferte = new OFFERTE_DB;
$getOfferte->query("SELECT * FROM binary_data");
$realnumrows=$getOfferte->num_rows();
?> <?php while($getOfferte->next_record()){ ?>
<table width="300" border="1" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF" bordercolor="#000000">
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">OFFERTA</font></td>
</tr>
<tr>
<td><?php echo $getOfferte->f("titolo"); ?></td>
</tr>
<tr>
<td><?php echo $getOfferte->f("description"); ?></td>
</tr>
<tr>
<td><img src=http://www.phpbuilder.com/board/archive/index.php/"<?php echo $getOfferte->f("bin_data"); ?>"></td>
</tr>
</table>
<p><?php } /* end while */ ?> </p>
Why doesn't <img src=http://www.phpbuilder.com/board/archive/index.php/"<?php echo $getOfferte->f("bin_data"); ?>"> work? What's wrong, how could I solve it?
P.S.: I already tried Florian's script but couldn't make it work since of Header problems...
<?php
require("db_mysql.inc");
class OFFERTE_DB extends DB_Sql {
var $Host = "******";
var $Database = "******";
var $User = "******";
var $Password = "******";
}
$getOfferte = new OFFERTE_DB;
$getOfferte->query("SELECT * FROM binary_data");
$realnumrows=$getOfferte->num_rows();
?> <?php while($getOfferte->next_record()){ ?>
<table width="300" border="1" cellspacing="0" cellpadding="3" bgcolor="#FFFFFF" bordercolor="#000000">
<tr>
<td><font face="Verdana, Arial, Helvetica, sans-serif" size="2">OFFERTA</font></td>
</tr>
<tr>
<td><?php echo $getOfferte->f("titolo"); ?></td>
</tr>
<tr>
<td><?php echo $getOfferte->f("description"); ?></td>
</tr>
<tr>
<td><img src=http://www.phpbuilder.com/board/archive/index.php/"<?php echo $getOfferte->f("bin_data"); ?>"></td>
</tr>
</table>
<p><?php } /* end while */ ?> </p>
Why doesn't <img src=http://www.phpbuilder.com/board/archive/index.php/"<?php echo $getOfferte->f("bin_data"); ?>"> work? What's wrong, how could I solve it?
P.S.: I already tried Florian's script but couldn't make it work since of Header problems...