connect(); $pgsqldb->query('SELECT result_time as "Result Time",voltage as "Voltage" FROM sample_mts310 WHERE nodeid =2 AND voltage '.$operator.' '.$txtvoltage.' ORDER BY result_time DESC LIMIT 25'); echo $pgsqldb->getResultAsTable(); }else { echo " ERROR : EMTPY FIELD MAYBE !"; } ?>