Try this one:
$sql = "select P_1,P_2,P_3 from p_players('$playerid', '')";
//This sends the SQL select statement to the db
$rs=$db->Execute($sql);
//This converts the SQL statement to an array
$result = $rs->GetArray();
print_r $result;
Question
I've tried using something similar to the following PHP code to retrieve items from a Firebird database.
$sql = "select P_1,P_2,P_3 from p_players('$playerid', '')";
//This sends the SQL select statement to the db
$rs=$db->Execute($sql);
//This converts the SQL statement to an array
$result = $rs->GetArray();
echo $result;
However, the echo result that I receive keeps returning "Array" no matter what I select as the database to query. What am I doing wrong? Thanks for any assistance.
No correct solution
OTHER TIPS
Try this one:
$sql = "select P_1,P_2,P_3 from p_players('$playerid', '')";
//This sends the SQL select statement to the db
$rs=$db->Execute($sql);
//This converts the SQL statement to an array
$result = $rs->GetArray();
print_r $result;