Re: [PHP] sorting in array

2006-07-30 Thread Paul Novitski
At 10:31 PM 7/30/2006, weetat wrote: I have problem when doing usort() when 'country' = '', i would like to display records where country = '' last. Any ideas how to do that ? ... $arraytest= array( array ( 'country' => '', ) , array (

Re: [PHP] sorting in array

2006-07-30 Thread weetat
Hi , Doesn't work . Any ideas ? Thanks Peter Lauri wrote: function cmpcountry($a, $b) { $country1 = $a['country']; $country2 = $b['country']; if($country1=='') return 1; else return ($country1 < $country2) ? -1 : 1; } -Original Messa

RE: [PHP] sorting in array

2006-07-30 Thread Peter Lauri
function cmpcountry($a, $b) { $country1 = $a['country']; $country2 = $b['country']; if($country1=='') return 1; else return ($country1 < $country2) ? -1 : 1; } -Original Message- From: weetat [mailto:[EMAIL PROTECTED] Sent: Monday, July

[PHP] sorting in array

2006-07-30 Thread weetat
Hi all , I have array value as shown below, i have paste my test php code below: I have problem when doing usort() when 'country' = '', i would like to display records where country = '' last. Any ideas how to do that ? Thanks $arraytest= array( array ( 'country'

Re: [PHP] mb_substr()

2006-07-30 Thread Chris
tedd wrote: Hi gang: From another list, a person posted: "I want to use PHP's mb_substr() function to grab the first letter of a UTF-8 encoded word (in Czech) being pulled out of MySQL. If I use the plain substr() the data gets garbled and I get a ? symbol in the browser. My host says that

Re: [PHP] PAYPAL TRANSACTION.

2006-07-30 Thread Chris
BBC wrote: Hi list.. Please any one point me to the web which talk about making transaction with paypal step by step. Some body offered me the source code and tutorial but until know he or she didn't send me. http://www.paypal.com I'm sure someone here has used / set up paypal but they provi

RE: [PHP] Saving a dynamic file

2006-07-30 Thread Brady Mitchell
Depends on what you are planning to do with the file. Saving it to PDF is also possible, take a look at http://fpdf.org and http://htmldoc.org/. Brady -Original Message- Hi!! I'm in the need of saving to a file a dynamic page that I generated from a PHP script, taking data from a tab

Re: [PHP] call a javascript within php

2006-07-30 Thread Paul Novitski
At 09:59 AM 7/30/2006, Jochen Kaechelin wrote: How can I call a JavaScript inside php? You can't literally call client-side JavaScript from server-side PHP because they're executing at different times and in different computers. PHP executes on the server then downloads the page to the bro

RE: [PHP] call a javascript within php

2006-07-30 Thread Jay Blanchard
[snip] How can I call a JavaScript inside php? [/snip] Echo it out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] call a javascript within php

2006-07-30 Thread Jochen Kaechelin
How can I call a JavaScript inside php? Thängs -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTTP_WebDAV_Server problems

2006-07-30 Thread Rory Browne
Hello All I'm trying to get a WebDAV server set up using PEAR::HTTP_WebDAV_Server, but so far I'm having little success. All I could get from the 11 Slides was that the Class had to be subclassed, and the methods overloaded, to provide the functionality. I gathered from the source-code, that I