<?php include ("mydna.class.php"); $db = new mydna; $sql = "SELECT * FROM table_name "; $data = $db->GetRecord($sql); for ($i=0;$i<count($data);$i++){ echo $data[$i][1]."<br>"; echo $data[$i][2]."<br>"; } $db->closeConnection(); ?>