Re: [PHP] syntax

2002-03-27 Thread Jan Rademaker
ind me what the correct syntax for this is ! > in a loop > and want individual > > $ned_1_city = blah > $ned_2_city = blur > > I've been trying this but its wrong > > $ned_.$i._city = $ned_city ; > > thanks > john > > > > > -- Jan Radem

Re: [PHP] using a counter in a foreach loop

2002-03-26 Thread Jan Rademaker
there a > way that I can achieve this effect? Thanks for any advice, well... put $i = 1; outside your loop...? $i = 1; foreach ($months) { // do some things $i++; } -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://w

Re: [PHP] Apache

2002-03-21 Thread Jan Rademaker
- > > ' ' ' Collège de Sherbrooke: > ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ >- Université de Sherbrooke: > http://compcanlit.ca/ > 819-569-2064 > > > > -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Please explain...

2002-03-19 Thread Jan Rademaker
Can someone explain why this works? $x = 0; if ($x == "foo") { print "yeah"; } This prints 'yeah', but i can't figure out why... -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] array within an array

2002-03-15 Thread Jan Rademaker
can I access the values within $filed_row_array[]? > > I want to do something like > > $table_row_array[0 [1]]; (the second value from the array that is the first > of $table_row_array) $table_row_array[0][1]; > > I know this isnt the syntax > > Thanks in advance >

Re: [PHP] PHP and permissions

2002-03-13 Thread Jan Rademaker
On Wed, 13 Mar 2002, Jan Rademaker wrote: > On Tue, 12 Mar 2002, Don wrote: > > > I did. That's why I'm confused. phpinfo() is telling me that the user is > > myself (I don't see the group). So what is the "permission" difference > > bet

Re: [PHP] PHP and permissions

2002-03-13 Thread Jan Rademaker
hould be able to find the group id in the same place as the userid (after the /), eg.: user(1234)/group(4323) or user(1234)/4323 Maybe this helps you out a little further... -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] PHP and permissions

2002-03-12 Thread Jan Rademaker
gt;This worked. > > So my question is, what user is PHP run under that allows me to access another >user's file (but the same group)? > > Thanks, > Don > -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $PHP_SELF in include files

2002-03-12 Thread Jan Rademaker
ace="Times New Roman" size="2"> > > color="#CC">Questions > size="2"> > Insert questions here. > } > ?> > -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Another Session Question..

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Gonzalez, Zara E wrote: > On second look, perhaps it is working correctly. > > I wasn't incrementing my counter variable. Sorry to flood your mailboxes. > > Zara > this should work as well; foreach($_REQUEST as $key => $val) { $_SESSIO

Re: [PHP] parse error? how can I print spesific message for allerror mesage

2002-03-12 Thread Jan Rademaker
I want > to say him that "Access Denied" Or something like that use error_reporting() (see manual) to suppres warnings. to give back an error use something like; if (!isset($dir) || !isset($res)) { print "Access Denied"; exit; } > > > >

Re: [PHP] Error Handling!

2002-03-12 Thread Jan Rademaker
mail : [EMAIL PROTECTED] > Tel : 91-4546512/4522124 > *** > > __ > Do You Yahoo!? > Try FREE Yahoo! Mail - the world's greatest free email! > http://mail.yahoo.com/ > > -- Jan Rademaker <[EMAIL PROTE

Re: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker
On Tue, 12 Mar 2002, Jason Lotito wrote: > Why not compare them in the SQL Query itself? > That could work just as well, depending in what you want to do with the data. -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://www.

RE: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker
d a record with, e.g. $row = mysql_fetch_row($result) use if (strtotime($row["DATETIME1"]) < strtotime($row["DATETIME2"])) { ... } or whatever you desire... > > Balaji > > -Original Message- > From: Jan Rademaker [mailto:[EMAIL PROTECTED]]

Re: [PHP] Hi How to compare two dates using PHP which are from mysqldatabase?

2002-03-12 Thread Jan Rademaker
help would be apprciable. > > Thanks in advance > Balaji > > -- Jan Rademaker <[EMAIL PROTECTED]> http://www.ottobak.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session OR variables

2002-03-11 Thread Jan Rademaker
On Mon, 11 Mar 2002, Vlad Kulchitski wrote: > The question is how reliable the session is? In other words > I understand session works based on cookies right? So if the client > browser has cookies disabled the session is not going to work > right? Not per se, cookies is one way of using sess

Re: [PHP] Hi problem with selected value!!

2002-03-11 Thread Jan Rademaker
I don't know what the problem is because it works fine here (IE 5.5) On Mon, 11 Mar 2002, Balaji Ankem wrote: > Hi friend, > could u plz. Tell me how to display the slected option value in alert > box? > > Code I wrote is like this.. But I am getting NULL.. Any help would be > appreciable..