Class method "dies" - HELP

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

    #1

    Class method "dies" - HELP



    function setTableStr($ta bleRefName) { // VOID "METHOD" SEE NOTE BELOW

    /*--------------------------------------------------------------------------
    ---
    This function will set the class property $this->tableStr to the
    appropriate
    table name depending upon the scope of that which is calling it
    ------------------------------------------------------------------------
    -------*/
    $this->tableStr = 'nnet_table_';
    $this->tableStr .= (strcmp(strtolo wer($tableRefNa me), 'head') == 0) ?
    'head' : 'line';
    }

    The moment this method in the Betaling class is called by another method in
    the Betaling class, insert_table_li ne(), everything just dies. No error
    statement, no HTML display, no nothing, just a complete nothingness!!

    This method is important to determine which table I will be doing insertion,
    and it's all the code I can provide that might make sense, I'm sorry. If
    you need more I am not even sure what I can provide for you. But honestly,
    I can't explain it better than the class method just.. dies.

    Phil


  • Janwillem Borleffs

    #2
    Re: Class method "dies&quot ; - HELP


    "Phil Powell" <soazine@erols. com> wrote in message
    news:_F4gb.4258 8$sp2.24816@lak eread04...[color=blue]
    >
    > The moment this method in the Betaling class is called by another method[/color]
    in[color=blue]
    > the Betaling class, insert_table_li ne(), everything just dies. No error
    > statement, no HTML display, no nothing, just a complete nothingness!!
    >[/color]

    This could be caused by an error_reporting level setting which is too low,
    or the php.ini settings not allowing the engine to print errors to the
    browser.

    Try starting your script with error_reporting (E_ALL); first.
    [color=blue]
    > This method is important to determine which table I will be doing[/color]
    insertion,[color=blue]
    > and it's all the code I can provide that might make sense, I'm sorry. If
    > you need more I am not even sure what I can provide for you. But[/color]
    honestly,[color=blue]
    > I can't explain it better than the class method just.. dies.
    >[/color]

    Perhaps this is too obvious, but do you call the method like
    $this->setTableStr('a rgument') ?


    JW



    Comment

    Working...