Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7049843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:04:14+00:00 2026-05-28T03:04:14+00:00

Whenever a mysql function is called, the script just dies. No output, and no

  • 0

Whenever a mysql function is called, the script just dies. No output, and no “die” output either. No output about it on the php error logs either. I can’t log into the db and access at all. Php just dies and I get a screen as if there was no page. How can I fix this? Or at the very least, get any output about the error to troubleshoot?

Same happens when using root. And, even when the info is wrong, there’s no output. But, when going to the Drupal site, there’s output at least when the log in info is wrong.

Here’s the code of my main site’s db class

class DB{
    public $con = null;
    public $user = 'viewer';
    public $pass = 'viewer';

    function __construct(){
        ini_set('display_errors', 1); 
        error_reporting(E_ALL);
        echo $this->user.' '.$this->pass.' wee';
        $con = mysql_connect("localhost",$this->user,$this->pass);// or die(mysql_error());
        //echo "connected";
        //mysql_select_db("db_name", $con);*/
    }

    function query($query){
        /*$query = mysql_real_escape_string($query);
        $return = mysql_query($query) or die(mysql_error());
        return $return;*/
    }
    function fetch_array($result){
        //return mysql_fetch_array($result);
    }

    function __destruct() {
        if (isset($con) ){
            mysql_close($con);
        }
    }
}
?>

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:04:15+00:00Added an answer on May 28, 2026 at 3:04 am

    Alright! Found what it is:
    On MetalFrog’s recomendation, I started enabling mysqli (and learned about it and plan to look into it more), when I ran apache, it gave this error output:

    The procedure entry point mysql_slave_query could not be located
    dynamic link library libmysql.dll

    That was the error. When using just the mysql extension, it didn’t check for that, and as such, the error was quite subtle. In my case, the extra libmysql.dll was on apache/bin. It would be more often that it’s on windows/system32. Only the /php one should be in the path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whenever I try to post data values in PHP I get the following error:
When using phpMyAdmin or the MySQL GUI Tools, whenever I create an InnoDB table,
I have made an application using Java/Hibernate/MySQL, but whenever I try running it, it
Whenever I indent HTML in PHP mode, emacs (22.1.1, basic install on Redaht Linux
I keep getting this whenever I run the below code: Fatal error: Call to
I have small PHP script which has $query = SELECT MAX(id) FROM `dbs`; //query
Hi I am storing some images in MySQL DB in a LONGBLOB field. Whenever
In MySQL I have a DECIMAL field set to 10,10. However, whenever I enter
I'm trying emerging them(php mysql connection) to avoid from redundancy. But the major problem
I have a stored function in MySQL: CREATE FUNCTION `login_count`(o INT, start_date DATE, end_date

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.