Re: [PHP] undefined offset

2012-04-26 Thread Jim Giner
Thanks. That was it -my last line was null. - Original Message - From: "Stuart Dallas" To: "Jim Giner" Cc: Sent: Thursday, April 26, 2012 4:21 PM Subject: Re: [PHP] undefined offset On 26 Apr 2012, at 21:20, Jim Giner wrote: Sorry - can't seem to fi

Re: [PHP] undefined offset

2012-04-26 Thread Stuart Dallas
On 26 Apr 2012, at 21:20, Jim Giner wrote: > Sorry - can't seem to find anything that explains this on google. > > I'm using a List command to break out an array into distinct field names. I > keep getting these errors as I go thru my loop:: > > Notice: Undefined offset: 10 in (.) on line

[PHP] undefined offset

2012-04-26 Thread Jim Giner
Sorry - can't seem to find anything that explains this on google. I'm using a List command to break out an array into distinct field names. I keep getting these errors as I go thru my loop:: Notice: Undefined offset: 10 in (.) on line 151 Notice: Undefined offset: 9 in (.) on line 151 N

Re: [PHP] Undefined Offset Error with Pagination and Sessions

2009-08-18 Thread kranthi
may be you can use a couple of var_dumps to see what's happening behind the screens. and... use a debugger like xdebug.. it'll be of help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined Offset Error with Pagination and Sessions

2009-08-18 Thread Ralph Deffke
by having a quick look on it, u have to work on a session base? otherwise it could be done by the post data only. I'm trying to avoid to work on the session, because it makes live a bit easier. if u can try. I'm telling this, because as u metioned to unset the session stuff is wierd and I wouldn't

Re: [PHP] Undefined Offset Error with Pagination and Sessions

2009-08-18 Thread Miller, Terion
Formatted as PHP http://pastebin.ca/1534058 and a note before I get chewed about the weird setting and unsetting at the top with the sessions...because believe I see it...but if you take the unset() out..nothing works, I can't figure that out and maybe that is a blatent thing I'm missing (prob

[PHP] Undefined Offset Error with Pagination and Sessions

2009-08-18 Thread Miller, Terion
Hi Folks, after days of trying lots of different things, I'm must grovel to the list and post my problem...which is I am unable to get my pagination to work, it seems to not carry the session to the next page and I get the "undefined offset error" The page code is posted here since my email client

[PHP] Re: SOLVED: [PHP] Undefined offset

2004-03-01 Thread Jough P
AH-HA! that was it! I was getting the notices on the last iteration of $i. I changed this: for($i=0; $i <= sizeof($this->inputs); $i++) to this: for($i=0; $i < sizeof($this->inputs); $i++) i.e. I changed <= to < DOH! I guess I need more coffee... On Mar 1, 2004, at 10:15 AM, Raditha Dissanay

Re: [PHP] Undefined offset

2004-03-01 Thread Jough P
I had read elsewhere on this list that it could be the case that $this->inputs[$i] wasn't defined at $i. That is why I encased the for loop in the if condition: if (sizeof($this->inputs) > 0) { for($i=0; $i <= sizeof($this->inputs); $i++) { . I've used both

Re: [PHP] Undefined offset

2004-03-01 Thread Richard Davey
Hello Jough, Monday, March 1, 2004, 3:58:31 PM, you wrote: JP> Greetings all, I'm getting "Notice: Undefined offset" regarding this JP> line of code while inside a for loop: if($this->>inputs[$i] == "user") JP> I assume the 'offset' that is undefined is $i. But $i is defined is JP> the for stat

Re: [PHP] Undefined offset

2004-03-01 Thread Raditha Dissanayake
could be your $i > length of array Jough P wrote: Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == "user") I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it. -- Radi

Re: [PHP] Undefined offset

2004-03-01 Thread Jough P
Oops, in my previous email I meant to say "Here's the WHOLE function". sorry about the typo, hope I didn't confuse... On Mar 1, 2004, at 9:58 AM, Jough P wrote: Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == "u

Re: [PHP] Undefined offset

2004-03-01 Thread Stuart
Jough P wrote: Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == "user") I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it. It doesn't mean that $i isn't defined. It mea

[PHP] Undefined offset

2004-03-01 Thread Jough P
Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop: if($this->inputs[$i] == "user") I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it. Here's the while function: function draw() { e

Re: [PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread Chris Williams
I don't believe the disputed line of script is being executed because just before that line I include the following print statement, echo "array size: " . count($zip_forward) . " ID: $location_id"; which does not get executed when my conditional fails. Right you are on the error reporting, I incl

Re: [PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread John W. Holmes
Chris Williams wrote: The first and last lines contain carriage returns. The second or middle line contains sample data. The script that reads and parses the data is: $countLines = fopen("data.txt", "r"); while (!feof($countLines)) { $newLine = fgets($countLines, 1024); echo "line leng

[PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread Chris Williams
I've created a script to parse through a data file which contains coma separated fields of data. The script works on Apache, however when I run it on under Windows (running PHP as a CGI) the script produces an Undefined offset notice. What is strange about this notice is that the line of code which

[PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread Chris Williams
I've created a script to parse through a data file which contains coma separated fields of data. The script works on Apache, however when I run it on under Windows (running PHP as a CGI) the script produces an Undefined offset notice. What is strange about this notice is that the line of code which

RE: [PHP] Undefined offset notices

2003-02-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Shawn McKenzie [mailto:[EMAIL PROTECTED]] > Sent: 20 February 2003 05:55 > > While debugging my code, that seems to work fine, I see > hundreds of these > notices, many different ones with different offset numbers > same line number. > > Notice: Undefined of

Re: [PHP] Undefined offset notices

2003-02-19 Thread Ray Hunter
Try using a for loop instead of a while loop... example: for( $i = 0, $tot = count($tmpparts); $i < $tot; $i++ ) { $content = "?>".$tmpparts[$i]; eval($content); foreach($command as $name => $cmds) { if($tmpcmds[$i] == $name) { $docmd = $cmds;

[PHP] Undefined offset notices

2003-02-19 Thread Shawn McKenzie
While debugging my code, that seems to work fine, I see hundreds of these notices, many different ones with different offset numbers same line number. (I know I can turn notices off) Notice: Undefined offset: 2 in D:\apps\www\test\themes\Family\includes\autotheme.inc.php on line 275 I would like

Re: [PHP] undefined offset && bad argument

2002-08-15 Thread Jason Wong
On Friday 16 August 2002 03:14, [EMAIL PROTECTED] wrote: > I get this error: > > Notice: Undefined offset: 1 in > /home/victor/argilent-www/sites/malibu_place_2/index.php on line 104 Which is line 104? > Warning: Bad arguments to implode() in > /home/victor/argilent-www/sites/malibu_place_2/ind

[PHP] undefined offset && bad argument

2002-08-15 Thread victor
I get this error: Notice: Undefined offset: 1 in /home/victor/argilent-www/sites/malibu_place_2/index.php on line 104 Warning: Bad arguments to implode() in /home/victor/argilent-www/sites/malibu_place_2/index.php on line 106 Error 5 For this code: // Original last tag // preg_match('!]+>(.*

Re: [PHP] Undefined Offset Error

2002-07-02 Thread Jason Wong
On Tuesday 02 July 2002 20:35, Crane, Christopher wrote: > Here is a piece of my code... > Could someone tell me what I did wrong? I get the following errors; > > Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php > on line 33 > Warning: Undefined offset: 1 in c:/www/htdocs/

[PHP] Undefined Offset Error

2002-07-02 Thread Crane, Christopher
Here is a piece of my code... Could someone tell me what I did wrong? I get the following errors; Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on line 33 Warning: Undefined offset: 1 in c:/www/htdocs/demos/download/inx_news.php on line 34 (obviously, the line numers

[PHP] Re: [php] undefined offset?

2001-08-03 Thread Chris Lee
you never defined test[8] thats why its undeined. more likley then not check in your php.ini file, i bet you have warning = ~E_WARNINGS E_ALL; in your linux box and warning = E_ALL; in your win box. I like all warnings and errors showing, personal opinion. -- Chris Lee [EMAIL PROTECT