#!/usr/bin/php4 -qC ';var_dump($db);print ''; } $base = 'normas'; $sql = " SELECT DISTINCT id_firmante AS id_firmante FROM $base.firmante ORDER BY id_firmante "; $res = $db->query($sql); print '
';var_dump($res);print '
'; while ($re = $res->fetchrow(DB_FETCHMODE_ASSOC)) { $result[]=$re['id_firmante']; } var_dump($result); ?>