Help needed with DB_DataObject

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hel

    Help needed with DB_DataObject

    Hi

    I have just adopted a PHP project and need some help understanding
    DB_DataObject. I've looked around on the web and can't find a simple
    explanation.

    Basically, my MySQL database has no tables. I have a createTable.php
    script which I believe is a standard script, it runs but tell me "NO
    TABLES". There is a function in the script called _createTableLis t()
    which is looking for tables not finding any (I don't really
    understand why there should be pre-existing tables when the script is
    supposed to be creating them...)

    I have .ini files which seem to describe the schema, and classes which
    correspond to the entries in the .ini file - but no SQL, and I do not
    understand how to get the schema into the database. I believe the
    environment is set up correctly for the script to find the .ini files.

    I hope that was clear, and I hope somebody here can advise me - I'm sure
    it's simple enough for somebody who knows what they're doing with
    DB_DataObject!

    Using PHP5 btw, if that matters.
    Thanks,
    Helen
  • dawnerd

    #2
    Re: Help needed with DB_DataObject


    hel wrote:
    Hi
    >
    I have just adopted a PHP project and need some help understanding
    DB_DataObject. I've looked around on the web and can't find a simple
    explanation.
    >
    Basically, my MySQL database has no tables. I have a createTable.php
    script which I believe is a standard script, it runs but tell me "NO
    TABLES". There is a function in the script called _createTableLis t()
    which is looking for tables not finding any (I don't really
    understand why there should be pre-existing tables when the script is
    supposed to be creating them...)
    >
    I have .ini files which seem to describe the schema, and classes which
    correspond to the entries in the .ini file - but no SQL, and I do not
    understand how to get the schema into the database. I believe the
    environment is set up correctly for the script to find the .ini files.
    >
    I hope that was clear, and I hope somebody here can advise me - I'm sure
    it's simple enough for somebody who knows what they're doing with
    DB_DataObject!
    >
    Using PHP5 btw, if that matters.
    Thanks,
    Helen
    >From what I can see, your _createTableLis t() function doesn't appear to
    create any database query...



    That might help you a bit.

    Comment

    Working...