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
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
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
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
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
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 - 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
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
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
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
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
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(= sizeof( $Array )?>);
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
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
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
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
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?';
>
-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
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