I am trying to decode and encode nws compatible cap xml. An example
is at the bottom of this post. simplexml_load_file works fine if
"cap:" is removed before processing. However, if it is not
simplexml_load_file does not parse the file at all and
libxml_get_errors returns no errors.
Any and a
Here's another easy way.
$data = array();
while ($row = ifx_fetch_row ($charge_result2, "NEXT"){
$data[] = $row['id'];
}
ifx_free_result ($res_id);
$comma_sep = implode(', ', array_values($data));
Thomas Shaw
[EMAIL PROTECTED]
-Original Message-
From: Dan Shirah [mailto:
rred Framework(s)?*
Zend Framework R0ckz. Definitely preferred to say the least :) Cake is cool
programming wise. Usability wise I run for my life.
*Do you Unit Test?*
Not really.
*Most Used Internal PHP Class*
Pdo_mysql/pgsql.
*Preferred OS CMS*
Joomla.
Tom Shaw
[EMAIL PROTECTED]
"When
You can try, $_SERVER['SERVER_SOFTWARE']
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jiang Miao
Sent: Monday, October 13, 2008 3:44 PM
To: php-general@lists.php.net
Subject: [PHP] How to know what current system is?
Is there any function do that?
when php in Linu
made. In other words the page is displaying twice.
Thanks
Tom Shaw
[EMAIL PROTECTED]
"Common sense is the knack of seeing things as they are, and doing things as
they ought to be done."
Harriet
<http://www.coolquotes.com/categories/harriet_elizabeth_beecher_stowe.ht
k into the meta
data and then you would have to manually build the information into array.
I'm not sure but I'm going to hack around with it a little and see what
happens.
Thanks Thomas
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 14, 200
I'm a big fan of Zend Studio 5. It's pretty hard to beat considering how fast
you can code load up the page refresh, and the editor itself is very clean plus
it works in linux. I know a lot of people like to soft tab but I just don’t
have the patience. Hard tabs all the way for me.
-Original Message-
From: Tom Shaw [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2008 9:52 PM
To: 'Jochem Maas'
Subject: RE: [PHP] 2 Questions.
iamjochem wrote:
>> My second question is I've designed a very simple Postgres database
> wrapper.
>> Th
increment id would not work to differentiate between orders. Another user
mentioned microtime.
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2008 6:06 PM
To: Tom Shaw
Cc: 'PHP General'
Subject: Re: [PHP] 2 Questions.
Tom Shaw schr
Can anybody give me any good reasons not to use a time stamp as an order
number in my shopping cart. It seems to me that the number is guaranteed to
be random and it saves having to make an extra time column to keep track of
the order. The only small concern I have is the chance that somebody order
l");
header("Content-Disposition: attachment; filename=inventory_report.csv");
print $out; This prints wrong.
-Original Message-
From: Eric Gorr [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2008 4:21 PM
To: PHP General
Subject: Re: [PHP] CSV output.
On Sep 8, 200
ECTED]
Sent: Monday, September 08, 2008 3:59 PM
To: Tom Shaw; php-general@lists.php.net
Subject: RE: [PHP] CSV output.
> -Original Message-
> From: Tom Shaw [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2008 3:54 PM
> To: php-general@lists.php.net
> Subject: [PHP]
is 234.00
only 234 shows up. Is there any way to force the zeros into the spreadsheet?
Thanks
Tom Shaw
[EMAIL PROTECTED]
;], 2, '.', '');
}
if (isset($data['order_product_amount_1'])) {
$data['order_product_total'] =
number_format($data['order_product_total'] +
$data['order_product_amount_1'], 2, '.', '');
}
-Original Message-----
From: Er
["order_date"] => string(8) "09-01-08"
["order_product_price_1"] => string(5) "10.00"
["order_product_price_2"] => string(5) "20.00"
["order_total_price"] => string(0) "30.00"
}
[1] => array(19) {
["order_date"] => string(8) "09-01-08"
["order_product_price_1"] => string(5) "25.00"
["order_product_price_2"] => string(5) "15.00"
["order_total_price"] => string(0) "40.00"
}
Tom Shaw
[EMAIL PROTECTED]
My array looks very similar to this. I need to create a single row for the
items that have the same order number for CSV export. I'd prefer to do this
PHP wise instead of SQL. But would appreciate any help I can get.
$ar = array(
array(
"order_id" => "34",
"order_number" =>
I'm having a problem sorting my array and wondered if anybody had experience
sorting arrays by their values. What I need to do is resort the array below
where the most expensive product shipping price starts at position zero no
matter how big the array is.
array(2) {
[0] => array(48) {
17 matches
Mail list logo