Daca ma poate ajuta cineva si pe mine intr-o problema.
Am o baza de date (SQL Server 2012) ce contine mai multe tabele. Intr-unul din tabele am un camp de tip image(blob) care contine text html. Cum trebuie sa fac sa afisez in browser acel text html?
Codul meu este:
Cod: Selectaţi tot
$myServer = "localhost/SQL2012";
$myUser = "sa";
$myPass = "1234";
$myDB = "DataBase_test";
$conn = new COM("ADOBE.Connection")
or die("Cannot start ADO");
$connStr = "PROVIDER=SQLOLEDB;SERVER=".$myServer.";UID=".$myUser.";PWD=".$myPass.";DATABASE=".$myDB;
$conn->open($connStr);
$query = "select texthtml from documente where cod_document = 173719";
$rs = $conn->execute($query);
while(!$rs->EOF){
$blob_data = $rs['texthtml']->value;
$rs->MoveNext();
}
echo $blob_data;
Multumesc