Howdy,
If someone out there could tell me how to get rid of a single key/index pair within an
array, it would be great. I've tried both unset() and empty(), but both destroy the
entire array.
Please CC me directly, as I'm on the digest.
Thanks in advance!
Martin
--
PHP General Mailing
$arr[1] = 'bar' exists now
See also: http://www.php.net/unset
http://www.php.net/array_splice
Regards,
Philip Olson
On Wed, 12 Jun 2002, Martin Clifford wrote:
Howdy,
If someone out there could tell me how to get rid of a single key/index pair within
an array, it would be great
You can pretty much use ANY JavaScript event handler to accomplish the redirection.
I'm new to PHP, so the header is the only place I know of to redirect.
onclick
onmouseup
onmousedown
onmouseover
onmousemove
onkeydown
onkeypress
onkeyup
onchange
etc.
--
PHP General Mailing List
laughs
Well, I had the right idea... John is just more advance than me. :o)
1LT John W. Holmes [EMAIL PROTECTED] 06/05/02 11:09AM
Since those look like MySQL timestamps, I would suggest you do it in your
query.
SELECT TO_DAYS(column1) - TO_DAYS(column2) AS Difference FROM table
Adapt to
I'm sure this is not a definitive answer, but I would assume that since you would be
passing the information through both the URI and Cookies, it will work regardless of
cookies enabled or disabled. On the other hand, if you are passing the session id
through the URI in the first place, you
As far as I'm aware you can't create a javascript variable and use it within PHP on
the same page. You can add that variable's value to a hidden form element to be
passed to the next page, but I don't think so with the same page.
martin
kemu [EMAIL PROTECTED] 06/05/02 02:30PM
I have a page
Hello everyone!
I'm fairly new to PHP, but I do know JavaScript, which is both a blessing and a
hinderance, as there are many syntax similarities, but a subtle amount of difference
which means I usually screw something trivial up in my PHP code. Can someone explain
to me why the following
Hello all,
I've been waiting in the shadows, reading, trying to get a handle on what type of
questions go here. I'm hoping this one does, and that some of you guru's might be
able to offer some insight.
I've just started out with PHP, and want to get to know relational databases. I've
seen
101 - 108 of 108 matches
Mail list logo