Jump to content

[SOLVED] multiple items in foreach()


the_oliver

Recommended Posts

Hello,

 

Can someone tell me what im doing wrong with the code bellow please?  I get print_ticket called lots of times, with 1 as the hash,name,ticket_no responce.

 

(i have chequed that the query is returning the right results).

 

$return = pg_query($pg_connection, $query);
        $data   = pg_fetch_array($return);                   

foreach ( $data as $temp ) {
    
echo print_ticket ($temp['hash'],$temp['name'],$temp['ticket_no']);
        
}

Link to comment
https://forums.phpfreaks.com/topic/54902-solved-multiple-items-in-foreach/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.