Items in a select-multiple field

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Adriana Urdaneta
User
Posts: 3

Items in a select-multiple field

Post by Adriana Urdaneta »

I've a filter select-multiple field and I need access to any variable which contains all values by this field when is not selected a item.

I tried with: $all_Feed = ew_Execute("SELECT DISTINCT Code_Feed FROM turner.log_ext"); or
$all_Feed = ew_LoadRecordset("SELECT DISTINCT Code_Feed FROM turner.log_ext");

Both returns an array with: 'Resource id #15','Array','Resource id #28','0','7','1','3','','Array', isn't that I expected. ¿How can execute the query? or ¿there is a variable with this information?


mobhar
User
Posts: 11737

Post by mobhar »

Adriana Urdaneta wrote:
isn't that I expected.

So, what kind information you expect? Tell us by using a real example.


Adriana Urdaneta
User
Posts: 3

Post by Adriana Urdaneta »

I've this code:

$all_Feed = ew_LoadRecordset("SELECT DISTINCT Code_Feed FROM turner.log_ext");
$footer.="all_Feed -> ";
foreach ($all_Feed as &$value) {
$footer.="'".$value."',";
}

I've expected that $all_Feed contain: '01VE','44N','BOLA','CNLA','GLPN','TNTv','WCVE' the return with this query, I proved in my database.
But I don't understand which return exactly ew_LoadRecordset, because which I obtain is: 'Resource id #15','Array','Resource id #28','0','7','1','3','','Array'

I don't know if there another function more appropriate for this, or if there is a variable with this information.


mobhar
User
Posts: 11737

Post by mobhar »


Adriana Urdaneta
User
Posts: 3

Post by Adriana Urdaneta »

Thanks, problem solved!


Post Reply