Re: Building an array, kind of?
| From: | Dan Shirah | Date: | Fri, 24 Oct 2008 18:08:30 +0000 |
| Subject: | Re: Building an array, kind of? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-282414@lists.php.net to get a copy of this message | ||
>
> from memory.
>>
>> $var='';
>> while($row = mysql_fetch_array($charge_result2))
>> {
>> $var .= $row['id'] . ',';
>> }
>>
>> cheers,
>>
>> tedd
>
>
Thanks all!
It works and here is the code I used:
$get_charges2 = "SELECT FIRST 16 * FROM history WHERE id = '$id";
$charge_result2 = ifx_query ($get_charges2, $connect_id);
while ($charge_row2 = ifx_fetch_row($charge_result2)) {
$charges .= $charge_row2['id'].",";
}