| Subject | migrate mysql 5 php script to firebird 2.5 | 
|---|---|
| Author | Roberto Carlos | 
| Post date | 2012-10-22T21:45:08Z | 
How could I convert the following php script from mysql to firebird?
 
//Get records from database
$result = mysql_query("SELECT * FROM people;");
        
//Add all records to an array
$rows = array();
while($row = mysql_fetch_array($result))
{
$rows[] = $row;
}
//Return result to jTable
$jTableResult = array();
$jTableResult['Result'] = "OK";
$jTableResult['Records'] = $rows;
print json_encode($jTableResult);
thanks for any help.
            //Get records from database
$result = mysql_query("SELECT * FROM people;");
//Add all records to an array
$rows = array();
while($row = mysql_fetch_array($result))
{
$rows[] = $row;
}
//Return result to jTable
$jTableResult = array();
$jTableResult['Result'] = "OK";
$jTableResult['Records'] = $rows;
print json_encode($jTableResult);
thanks for any help.