Re: [PHP] finding next and previous db entries

2002-09-05 Thread Petre Agenbag
I think it would probably be better to read all the id's into an array, and then use the array stepping functions to move forward or back. This way, you won't have to worry about "empty" rows, or id's that are not numerically following on each other. On Thu, 2002-09-05 at 23:20, tux wrote: > > h

[PHP] Re: Javascript ?

2002-09-05 Thread lallous
try www.ozoneasylum.com Elias "Christopher J. Crane" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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 unsubscrib

[PHP] Sorting a text string

2002-09-05 Thread Bård Tommy Nilsen
I want to sort text strings, but how could i do this ? Example: 04.09.2002 05.09.2002 19.03.1999 Is there a way to "change" the string to something like this ... 2002.09.04 2002.09.05 1999.03.19 Or is there a better way to solve this ?? Bård Tommy Nilsen -- PHP General Mailing List (http

RE: [PHP] Sorting a text string

2002-09-05 Thread Scott Houseman
Hi There. One way of doing this: split each string into an array, delimited by the periods $sDate = '04.09.2002'; $aDate = split( '.', $sDate ); this will give you an array like array( [0]=>'04', [1]=>'09', [2]=>'2002' ) now reverse the array: $aDate = array_reverse( $aDate ); join back in

[PHP] problem with starting apache in win2k with mcrypt and mhash

2002-09-05 Thread Terence Lee
Hello i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i try to start the apache but encounter the following error msg "The procedure entry point _ecalloc could not be located in the dynamic link library php4ts.dll" "Unable to load dynamic library 'c:\php\extensions\php_mcry

[PHP] problem on starting apache in win2k with mcrypt and mhash module

2002-09-05 Thread Terence Lee
Hello (i've confirmed my email address but not sure if you will read my previous mail, so i send it once more.) i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i try to start the apache but encounter the following error msg "The procedure entry point _ecalloc could not be l

php-general Digest 5 Sep 2002 10:40:19 -0000 Issue 1567

2002-09-05 Thread php-general-digest-help
php-general Digest 5 Sep 2002 10:40:19 - Issue 1567 Topics (messages 115239 through 115284): Re: post doesn't work? 115239 by: Matt Zur Returning Rows Question 115240 by: Christopher J. Crane 115242 by: Mike richardson 115244 by: Christopher J. Crane

[PHP] dropdown Newbie question

2002-09-05 Thread Mario Ohnewald
Hello! I am very new in php and i have a little dummy question ;D I have a dropdown box with a entry in it called "Coctail Blue" Now i want to put the selected string ("Coctail Blue" in this case) in to a variable when i press the button below. options.php is the page it should go after. // ..SN

[PHP] Array Javascript

2002-09-05 Thread kale
Hy, I have an array make with a javascript. How can I read values with PHP from it? Kale. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] dropdown Newbie question

2002-09-05 Thread Scott Houseman
Hi there. The value from that dropdown will be returned to you in the variable $_POST OR $_GET, depending on which method you used to submit the form. Assuming you use POST, you can access the selected value like this: $var_from_dropdown = $_POST['theme']; Regards -|Scott > -Original M

Re: [PHP] Array Javascript

2002-09-05 Thread Justin French
You can't. Javascript happens on the client side AFFTER PHP has happend on the server side. For PHP to ready variables made with javascrip,t you'd have to submit those variables/arrays via POST of GET to the PHP file. Justin on 05/09/02 9:11 PM, kale ([EMAIL PROTECTED]) wrote: > Hy, > I have

RE: [PHP] Array Javascript

2002-09-05 Thread Scott Houseman
Hi To Assign values from an array in PHP to JavaScript, you could try something like this. $Array = array( 'one', 'two', 'three' ); Now in your JavaScript: JSArray = new Array();

Re: [PHP] Array Javascript

2002-09-05 Thread Marek Kilimajer
var tmp,url; url = 'http://site/script.php?'; while(tmp = myArray.shift()) { url += 'phparray[]' + escape(tmp); } document.location.href = url; In script.php, you'll find array named phparray kale wrote: >Hy, >I have an array make with a javascript. >How can I read values with PHP from it

[PHP] PHP and VISA cards? help!

2002-09-05 Thread php
Hi How is possible to charge some products on E-Shop in php to users with VISA cards??? Are there some good tutorials on net about this??? Or examples??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with starting apache in win2k with mcrypt and mhash

2002-09-05 Thread Marek Kilimajer
Terence Lee wrote: >Hello > >i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i >try to start the apache but encounter the following error msg > >"The procedure entry point _ecalloc could not be located in the dynamic >link library php4ts.dll" > >"Unable to load dynamic libr

[PHP] PHP & MySQL & Apache on Linux vs. Solaris

2002-09-05 Thread Boaz Yahav
Hi Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine I'm having weird problems with MySQL crashing while running reports written in php. The site is amazingly fast now on the Linux server but running a report that locks the main tables for about 20 seconds raises the load

Re: [PHP] Array Javascript

2002-09-05 Thread Marek Kilimajer
I forgot &, the right version: var tmp,url,separator; url = 'http://site/script.php?'; while(tmp = myArray.shift()) { url += separator + 'phparray[]' + escape(tmp); separator = '&'; } document.location.href = url; Marek Kilimajer wrote: > var tmp,url; > url = 'http://site/script.php?'; >

Re: [PHP] dropdown Newbie question

2002-09-05 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, If your php version is > = 4.1.0 use: $var_from_dropdown = $_GET['theme']; else use: $var_from_dropdown = $HTTP_GET_VARS['theme']; You might want to change the method used to submit your form from get to post, like: // Start Dropdown echo ' Then

Re: [PHP] Array Javascript

2002-09-05 Thread Marek Kilimajer
You have a JavaSript array on the client side, so you want to provide some "click here" link or button. The whole thing will look like this: Untitled