ok something simple has to be causing this... cuz like for every array i have.. i get this in my apache web server error log:

[Sun Jul 13 17:22:18 2003] [error] PHP Notice: Undefined index: newsadmin in c:\apache\apache\htdocs\clanweb\clanweb.php on line 380
[Sun Jul 13 17:22:18 2003] [error] PHP Notice: Use of undefined constant LoggedIn - assumed 'LoggedIn' in c:\apache\apache\htdocs\clanweb\clanweb.php on line 455
[Sun Jul 13 17:22:18 2003] [error] PHP Notice: Undefined index: LoggedIn in c:\apache\apache\htdocs\clanweb\clanweb.php on line 455
[Sun Jul 13 17:22:18 2003] [error] PHP Notice: Use of undefined constant action - assumed 'action' in c:\apache\apache\htdocs\clanweb\clanweb.php on line 464

and i get taht for every single one of these, ex:
if ( ( $REQUEST[deletematch] == "Delete Match" ) || ( $REQUEST[deletemember] == "Delete Member" ) || ( $_REQUEST[deleteschedule] == "Delete Schedule" ) )

ive tried messing with quotes and stuff... but i dont think thats it cuz this worked before, and i just added some code but im not sure which piece i added could be causing all this trouble.

    Looks to me like you need to post your code. Particularly the lines around 380, 455, and 464....PHP error messages pretty much mean what they say...

      Definitely post the code... without seeing the code associated with those errors, we cant' help out...

        and yes that error log is from one event if u take a look it all happened within like 5 seconds

          Indices in associative arrays should be quoted.

          For example, you should use:

          $COOKIE['newsadmin']
          or
          $
          COOKIE["newsadmin"]

          instead of

          $_COOKIE[newsadmin]

          If not, then the index is regarded as being an undefined constant, since you could have used

          define("newsadmin", "me");

          earlier in the script.

            You need to check all your scripts for constant's not strings.
            It is easy to write [name] where you should be writing ['name'].

            The newer versions of PHP require ( without errors ) strings not constants.

            HalfaBee

              change the level of your error reporting (in php.ini) and you will find that they magically go away.

                well see the thing is, my script works just fine except for one thing... and this one thing doesnt always happen

                part of the script requires me to login, and when i try, it doesnt do anything. and ive checked my database to make sure what I was typing was the correct username/pw. keep in mind ive never changed the login code.

                do you think these errors would effect that at all? im wondering if it isnt a mysql error in my script... i know its reading from the database because if i goto just view the news, it works just fine and it reads from the DB... but when i goto login, it doesnt even recognize the pw.

                  Write a Reply...