i have use this function so many times. it works well for my requirements. ok well done...
$sqlstr="SELECT bill_no FROM SCROL";
// if we want to access the records
// then we have to write the following code
the out put for this will:
which is actullay first record of resultset.