Re: [PHP] dynamic drop down

2002-04-23 Thread esivertsen
Hi Kunul, I think I have code that does what you want: function QuickJumpSelect($name=, $optionvalues, $optionnames, $stylestr=) { ($stylestr != )? $style = $stylestr : $style = ; // Calculate stuff $count =

[PHP] Array indices

2002-04-23 Thread esivertsen
Hi all, I have a question regarding array indices: At a certain point in code, I run array_diff() on two arrays to produce a reduced version of one of the argument arrays. Problem is, I dont want the key-value associations to be preserved. I need that the returned array has new (integer, not

[PHP] Re: IP of visitors

2002-04-23 Thread esivertsen
This variable contains the IP address of the visitor: $HTTP_SERVER_VARS[REMOTE_ADDR] Best regards, Eivind -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: get ip of visitors

2002-04-23 Thread esivertsen
This variable contains the IP address of the visitor: $HTTP_SERVER_VARS[REMOTE_ADDR] Best regards, Eivind - Original Message - From: Cosmin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 12:16 PM Subject: [PHP] Re: get ip of visitors

Re: [PHP] Page Refresh

2002-04-23 Thread esivertsen
You could use a SESSION variable called for instance 'SUBMIT_TO_DB'. After submitting to the database, you simply set this variable 'SUBMIT_TO_DB' to 'NO'... The next time the page is reloaded, you won't have to submit one more time to the database, provided you check whether 'SUBMIT_TO_DB' is

Re: [PHP] PHP editor for windows

2002-04-23 Thread esivertsen
There is also one called 'phpbuilder'... Eivind -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Once more: [PHP] Array indices - PLEASE HELP!!

2002-04-24 Thread esivertsen
Does nobody have a suggestion to the below? Perhaps there is an easy solution, but I cant see it at the time. Eivind Hi all, I have a question regarding array indices: At a certain point in code, I run array_diff() on two arrays to produce a reduced version of one of the argument

Re: [PHP] Once more: [PHP] Array indices - PLEASE HELP!!

2002-04-24 Thread esivertsen
just run your array through a foreach loop assigning each key-value pair to a new array. OK, I was trying to see if there was a more elegant way to do it, so I wouldn't have to make the loop. Like just re-mapping the indices to default values by a short and simple operation. But it will do

Re: [PHP] registering an array to a session?

2002-04-24 Thread esivertsen
You just register it...: $_SESSION['your_array'] = $your_array; It will be serialized automatically before stored. All the best, Eivind - Original Message - From: Christoph Starkmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 24, 2002 2:46

Re: [PHP] Newbie Book Database Question

2002-04-25 Thread esivertsen
I started with PHP bible by Converse/Park on IDGbooks. Never needed anything more; used the manual and the web afterwards; for reference and tips. Another nice book is Wrox' professional PHP programming. All the best, Eivind -- PHP General Mailing List (http://www.php.net/) To