Menu

Notice: Undefined variable: sql in... GenDAO

Anonymous
2004-09-06
2004-09-13
  • Anonymous

    Anonymous - 2004-09-06

    Hello!

    I don't have any experience wih PHP and I came from te Java  enviroment. There are a lot of usefull tools of code generation. So, after one day with PHP , first thing I had to do is to find a DAO/Business code generator.

    I am staring to use phpCodeGenie and i think is a very usefull code generation tool.

    Just one minor problem I have: I am getting the folowing message: "Notice: Undefined variable: sql "
    when XXXGenDAO.class.php are called.

    is there any way that I could prevent that from happening??

    Many thanks.

    Florin Marcus

     
    • Nilesh Dosooye

      Nilesh Dosooye - 2004-09-13

      just my bad programming practices.. i did not initialize variables before using them... its hard to lose bad habits sometimes :)

      But what you can do if you want to avoid seing notices.. (non-fatal) just change the error reporting in your php.ini to show only errors and not notices..

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.