[PHP] Returning Rows Question

2002-09-04 Thread Christopher J. Crane
How do you alternate colors of the rows in a table inside a while statement when dealing with the output of data from a DB. I am sure it's something simple but I keep getting into some really long math thing... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Nevermind... I got it... Thanks!

2002-09-04 Thread Matt Zur
Thanks Again! -Matt [EMAIL PROTECTED] wrote: If you have register globals off, you must use $_POST['name'] and not $name. Check your php.ini (? phpinfo(); ?) -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Matt Zur [EMAIL PROTECTED] a

RE: [PHP] Returning Rows Question

2002-09-04 Thread Mike richardson
While( ) { ... $color = ($color == FF)? EAEAEA : FF; print td bgcolor='#$color'\n; ... } -Original Message- From: Christopher J. Crane [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 04, 2002 3:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Returning

[PHP] Mail list/message board

2002-09-04 Thread Brian V Bonini
Anyone now of a a PHP mailing list program that has a forum-like interface as well? Somethign that functions similar to yahoo groups if your familiar with that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Returning Rows Question

2002-09-04 Thread Christopher J. Crane
Thanks. I will give it a shot. I have never seen anything written like that. Can you give me a brief explanation of what it means? Thanks again. - Original Message - From: Mike richardson [EMAIL PROTECTED] To: 'Christopher J. Crane' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

Re: [PHP] Returning Rows Question

2002-09-04 Thread Ashley M. Kirchner
Christopher J. Crane wrote: $color = ($color == FF)? EAEAEA : FF; Break it down: $color = whatever (we don't care right now) That whatever is: ($color == FF)? EAEAEA : FF And that says: Evaluate the (current) variable $color. Is it FF? if so, change it to

[PHP] Re: Mail list/message board

2002-09-04 Thread nicos
Take a look at http://news.php.net/ -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Brian V Bonini [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Anyone now of a a PHP mailing list program that has a forum-like interface as

Re: [PHP] Returning Rows Question

2002-09-04 Thread Christopher J. Crane
That's what I thought it meant but I have never seen it writte nthat way. Thank you very much - Original Message - From: Ashley M. Kirchner [EMAIL PROTECTED] To: Christopher J. Crane [EMAIL PROTECTED] Cc: Mike richardson [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 04,

[PHP] Re: Returning Rows Question

2002-09-04 Thread joshua
here's one way, set a variable and switch it on and off $tr_properties = 'style=background-color: grey;'; while( $ect = etc ) { if($tr_properties){ print tr $tr_properties; $tr_properties = false; } else { print tr; $tr_properties =

[PHP] Domxml: coping with UTF-16

2002-09-04 Thread Gwyn
Hi - I've built a web-based XML editor using PHP, so that clients can edit the sites themselves. The site HTML is generated dynamically via Sablotron. The problem is the users are copying-and-pasting from MS Word, and putting things like smart quotes and greek characters (one site is about

RE: [PHP] Returning Rows Question

2002-09-04 Thread David Freeman
How do you alternate colors of the rows in a table inside a while statement when dealing with the output of data from a DB. I am sure it's something simple but I keep getting into some really long math thing... For two alternating colours I normally do something like this: $use_col

[PHP] whitespace...

2002-09-04 Thread Matt Zur
How do I remove the whitespace from a document? I consulted the manual and it said to use the trim function. But in a large PHP document, with lots of fuctions etc in PHP... is there a simple way to compress the whitespace of the entire document? Rather than going through each var and using

[PHP] Re: whitespace...

2002-09-04 Thread Philip Hallstrom
I'm not sure I fully understand your question, but given the following PHP file: ?php print(hello); #assume there are hundreds of blank lines just above this one. ? all the browse will see is this (minus the dashed lines).

Re: Fw: [PHP] FORUM CODE

2002-09-04 Thread joshua
Kevin Stone wrote: $myformtxt = '[i]Hello[/i] [B]world[/B]'; // pretend this came from a form. 1. I understand what you're doing, and how. But what I don't understand is why? If a user is going to have to type [B]bold[/B], why not just get them to type bbold/b. [bold] and [italic] maybe?

[PHP] Re: whitespace...

2002-09-04 Thread nicos
Hi, You should use $content = str_replace( ,,$content); I assume that works, there is probably something better than it too but thats all I see at this hour. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Matt Zur [EMAIL PROTECTED] a écrit dans

[PHP] Re: whitespace...

2002-09-04 Thread Matt Zur
If you have a file includes IE: include (data.inc); and have arrays n such with multiple php tags in that file, it will produce alot of white space on the final output. -Matt Philip Hallstrom wrote: I'm not sure I fully understand your question, but given the following PHP file: ?php

[PHP] Javascript ?

2002-09-04 Thread Christopher J. Crane
Does anyone know of a Javascript forum like this one that I can post a question to? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Javascript ?

2002-09-04 Thread nicos
This has nothing to do with PHP, the best list of newsgroup is here : www.google.com -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Christopher J. Crane [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Does anyone know of a

[PHP] cURL and cookies

2002-09-04 Thread Jeff Schwartz
I'm trying to use cURL to log into a site, get the cookies then use those cookies as I move through the site. I'm getting the cookies in a file but either they're not being sent when the script goes to the next page or they need to be formatted somehow so the site recognizes them. Has anyone

Re: [PHP] whitespace...

2002-09-04 Thread Steve Edberg
At 04:37 PM 9/4/02 , Matt Zur wrote: How do I remove the whitespace from a document? I consulted the manual and it said to use the trim function. But in a large PHP document, with lots of fuctions etc in PHP... is there a simple way to compress the whitespace of the entire document? Rather

[PHP] Help, Convincing upgrade of PHP

2002-09-04 Thread JJ Harrison
I will be generating a dynamic website for a Class in america. (Don't worry about details) The schools technican is the type that doesn't really know what they are talking about. They are running PHP 4.0.6 which is too old for me - Language differances. They say that upgrading to PHP 4.2.3

Re: [PHP] Help, Convincing upgrade of PHP

2002-09-04 Thread Michael Geary
Perhaps the best thing to do would be to wait for PHP 4.3, which will offer out-of-the-box OS X support. I have compiled the latest dev releases with no problems or workarounds on OS X. However, I do have step-by-step instructions for compiling PHP 4.2.x on OS X, but depending on the

[PHP] Good free PHP web stats package?

2002-09-04 Thread tomba
I have a client that is hosted with a company that has a rather lame web stats package. I am looking for a PHP based stats package and have waded through the sites that have apps shown under PHP at hotscripts.com and wasn't drawn to the dozen or so that I looked at. So if you have

[PHP] php and a printer

2002-09-04 Thread Ric Mañalac
is it possible to write a php program that sends output to a network printer? an example would also be great. thanks! -- Ric Mañalac Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the

Re: [PHP] Help, Convincing upgrade of PHP

2002-09-04 Thread David Rice
You may also want to look at: http://www.entropy.ch/software/macosx/php/ A build for Mac OS X based on PHP 4.4.2 with simple download and install instructions. HTH David On Wednesday, September 4, 2002, at 11:46 PM, Michael Geary wrote: Perhaps the best thing to do would be to wait for PHP

[PHP] emacs on win32

2002-09-04 Thread Victor
This is somewhat php related: how do you get syntax highlighting and coloring (whatever) for php in the windows version of emacs? - Victor www.argilent.com __ Post your free ad now! http://personals.yahoo.ca -- PHP

[PHP] ebay auction manager

2002-09-04 Thread electroteque
hi tough question but is there any way to port to ebay and manage and list the auctions remotely in php? i've seen heaps of software and websites that can do it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ebay management and auction listings using php

2002-09-04 Thread electroteque
hi tough question but is there any way to port to ebay and manage and list the auctions remotely in php? i've seen heaps of software and websites that can do it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] convert ISO-8859-1 to EUC-JP

2002-09-04 Thread prabahar
Hi, I have requirement like this... Read a TEXT file that has codes that represents Japanese chars in ISO-8859-1 encoding. example #35336;#30011;#23550;#27604; I have to read these and convert into EUC-JP and write the EUC-JP to a different file. ?php $fpI = fopen(E:\\input.txt,r); $fpO =

[PHP] Currency Exchange and Weather

2002-09-04 Thread César Aracena
Hi all. I need to find FREE world wide weather reports and also a FREE currency converter from US Dollars to other currencies that can serve PHP requests 24 hours a day, so I can customize the look and feel of these results in my site(s). Does anyone knows where to get all this? Has anyone out

[PHP] Encryption of emails.

2002-09-04 Thread Bob Irwin
Hey guys, Can anyone recommend any PHP functions or plugins that will allow me to send encrypted emails via PHP? Something similar to PGP would be excellent. I have use PGP with a formmail cgi previously, but obviously it'd be easier to have in-PHP support for it. Any suggestions are much

[PHP] Re: Encryption of emails.

2002-09-04 Thread Manuel Lemos
Hello, On 09/05/2002 02:29 AM, Bob Irwin wrote: Hey guys, Can anyone recommend any PHP functions or plugins that will allow me to send encrypted emails via PHP? Something similar to PGP would be excellent. I have use PGP with a formmail cgi previously, but obviously it'd be easier to

Re: [PHP] Encryption of emails.

2002-09-04 Thread Justin French
Perhaps not EXACTLY what you're after, but I wrote a small, simple function to encrypt a string with a key (i'll skip a long note about keeping the key safe). Then I send an email with the data encrypted, and decrypt it at the other end (me) using a decrypt script located on my local server. It

Re: [PHP] Currency Exchange and Weather

2002-09-04 Thread Justin French
This appears to do what you want... or at least provide some inspiration: http://www.phpclasses.org/browse.html/file/1220.html I'm sure there are hundreds of web services based on currency conversion and weather... usually they send XML data which you parse... google will help :) Justin

Re: [PHP] Good free PHP web stats package?

2002-09-04 Thread olinux
Webalizer is a fairly popular package, even used by a few fortune 500's if I remember correctly. Not PHP but fast and free. http://www.webalizer.com/ olinux --- tomba [EMAIL PROTECTED] wrote: I have a client that is hosted with a company that has a rather lame web stats package. I am

<    1   2