[PHP] Rounding....

2002-02-10 Thread Matthew Clark
Seeing as the mathematically correct way to round numbers is to round down to n for n-1=m=n.5 and up to n+1 for n.5mn+1, I wonder why the PHP round() function couldn't include a little 'fuzz' to handle the rounding problems we encounter due to floating point representation in the hardware? It

RE: [PHP] 2 conditions why wont they work??

2002-02-10 Thread Matthew Clark
Yes - that's most likely the answer.. if the echo doesn't help, try something like this.. $result2 = mysql_query($query2,$db) or die(mysql_error()); If mysql is throwing up an error, that'll present it too you and stop execution.. -Original Message- From: Bogdan Stancescu

RE: [PHP] 2 conditions why wont they work??

2002-02-10 Thread Matthew Clark
In your code below, mysql will throw an error if $clientID is empty or non-numeric because it is not surrounded with quotation marks.. mysql will treat it as a field name (or just throw a syntax error if it's empty). -Original Message- From: Brad Wright [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] easy quickie..

2002-01-02 Thread Matthew Clark
_Your_ browser has a back button.. great.. There are many situations in which the back button may not be visible/available/appropriate. You may also not want to go back in your _history_, just back to the previous page - and possibly set some variables in the page request. It is far more than a

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
Hi there, This is not a bug.. this is expected behaviour. The string would be chopped up into 3 parts because you have : 1. a string: Follow-up To Critique of BeOS 2. a predefined entity : amp; 3. a string: amp; Mac OS X There are not actually two ampersands.. you have amp; followed by amp;

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
well thats just the way XML parsers work, according to the parser, what you have there is not a single string element, you have three child elements (the parent node being the title).. two string nodes broken up by an entity node. In other circumstances, this behaviour can be very useful. Matt.

[PHP] CSV output displayed in Excel or similar.

2001-11-29 Thread Matthew Clark
, Matthew Clark. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] test - please disregard

2001-02-03 Thread Matthew Clark
-- Matthew Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]