dcsimg
www.webdeveloper.com
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20

Thread: Call to undefined function Blog\DB\connect?

  1. #16
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,313
    I'm probably missing something obvious here, but if your require() failed to load the file, you should have gotten a fatal error and never made it to the point where you got the undefined function error.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  2. #17
    Join Date
    Apr 2014
    Posts
    19
    Quote Originally Posted by NogDog View Post
    I'm probably missing something obvious here, but if your require() failed to load the file, you should have gotten a fatal error and never made it to the point where you got the undefined function error.
    I know, exactly!

  3. #18
    Join Date
    Jul 2016
    Posts
    2
    i got the same problem . how can i get rid of it????

  4. #19
    Join Date
    Jul 2016
    Posts
    2
    Quote Originally Posted by Imam Gains View Post
    nah now even the other pages are not working
    i got the same problems. Can you please help me

  5. #20
    Join Date
    Jun 2016
    Posts
    10
    Have you added this dbconnect funtion code with your program

    function dbConnect($db="") {
    global $dbhost, $dbuser, $dbpass;

    $dbcnx = @mysql_connect($dbhost, $dbuser, $dbpass)
    or die("The site database appears to be down.");

    if ($db!="" and !@mysql_select_db($db))
    die("The site database is unavailable.");

    return $dbcnx;
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles