$query = "select id, xmldata from xmlcontent where id = '586655' OR id = '671347'"
$db = new PDO(...);
$stmt = $db->prepare($query);
$stmt->execute();
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
var_dump($result);
output:
...
["XMLDATA"]=> resource(33) of type (stream)
...
how i can read this? i try:
stream_get_contents()
but nothing
with
stream_get_contents()
sometimes read some litle text, i would like to use and generic code from all SQL-s without binding params :(