Menu

#33 q.php doesn't work

v1.0 (example)
closed
nobody
None
5
2015-06-05
2014-01-16
No

Hi,

in q.php is the same bug as ID 32 present. The DB-Connection must open before the function mifi is used. Attached is the change.
//q.php line 1:

connect(); $title = "Question"; //end ... after line 46 include "./classes/mysql.class.php"; $mysqldb = new mysql(); $mysqldb->connect(); should be deleted. ?>

Discussion

  • Christoph Lehnberger

    arh
    autocorrection....

    line 2
    $adfl = FALSE;
    include_once('config/config.php');
    include "./classes/mysql.class.php";
    include_once('functions.php');
    $mysqldb = new mysql();
    $mysqldb->connect();
    $title = "Question";

     
  • Christoph Lehnberger

    Hi Andy,

    I saw you react very quickly, that's cool.
    But the fix is not complete:

    the include: include "./classes/mysql.class.php";
    is included twice and after the first include a DB-connection should be opened.
    after line 4
    include "./classes/mysql.class.php";
    include_once('functions.php');
    $mysqldb = new mysql();
    $mysqldb->connect();

    Best regards,
    Christoph

     
  • Andy Grayndler

    Andy Grayndler - 2015-06-05
    • Status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB