1

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.

1
  • 2
    Switch your echo to a var_dump or print_r Commented Feb 24, 2014 at 3:19

1 Answer 1

0

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;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.