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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> -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
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;
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
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
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('!]+>(.*
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/
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
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
26 matches
Mail list logo