I´m trying to display an image from access just like I do with mysql.
It simply doesn´t work!
Can you tell me what´s wrong with that code below??
please!
<?
$gestao = odbc_pconnect ('gestao', 'xxx', 'xxxx');
$fotos = "SELECT * FROM [P-photos] WHERE ((([P-photos].[P id])=2);";
$foto = odbc_exec($gestao,"$fotos");
header ("Content-type: image/jpeg");
echo odbc_binmode($foto,"photo");
?>