Hi folks.
the problem is, that i have 2 databases, one with binary data (pics) second with usual data like name, adress....
if i display only the text OR only the binary data everything works fine, but when i try to display both together errors occure.
--------Output Picture (works fine)---------
<?php
MYSQL_CONNECT("ip", "user", "password");
mysql_select_db("database");
$result = MYSQL_QUERY("select bin_data,filetype from binary_data where id=$id");
$data = MYSQL_RESULT($result,0,"bin_data");
$type = MYSQL_RESULT($result,0,"filetype");
echo $data;
};
?>
when i add the query for the 2nd database:
$output = MYSQL_QUERY("Select * from adress where id=$id");
$name = MYSQL_RESULT($output,0,"name");
echo $name;
the problems starts. i need to display both results together at one site. Maybe someone can help.
Thanks