1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

[PHP] Misterious error

Discussion in 'Software Development' started by dmneoblade, Sep 3, 2004.

Thread Status:
Not open for further replies.
  1. dmneoblade

    dmneoblade Thread Starter

    Joined:
    Apr 15, 2004
    Messages:
    242
    I'm writing a PHP program called "BiblioMaker"
    Its purpose is to recreate the old "NoodleBib" automatic MLA-style bibliography maker into an OSS program. However, I am getting a strange error, and do not know how do deal with it. Included is my code, and this is the error I get:

    Notice: Undefined index: type in F:\Desktop\Source Code\My Programs\PHP\Bibliomaker\bibliomaker.php on line 36

    Notice: Undefined index: printer in F:\Desktop\Source Code\My Programs\PHP\Bibliomaker\bibliomaker.php on line 37
     

    Attached Files:

  2. deuce868

    deuce868

    Joined:
    Nov 2, 2000
    Messages:
    637
    what error level are you running in the php.ini?

    It means that there is no value for those index (array keys) in your $_SESSION array. What you might want to try doing is change the code to first check if it is empty, if not then set it...if it is empty then set some default value.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/269847

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice