Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed from the master code like you suggested and Fatal error: Uncaught Error: Call to undefined function mysql_connect() #19

Open
GenLaratonda opened this issue Jan 23, 2021 · 5 comments

Comments

@GenLaratonda
Copy link

GenLaratonda commented Jan 23, 2021

Location of Address Book
http://911truthalliance.org/addbook/index.php

Error:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/[user]/public_html/911truthalliance.org/addbook/include/dbconnect.php:45 Stack trace: #0 /home/[user]/public_html/911truthalliance.org/addbook/index.php(2): include() #1 {main} thrown in /home/[user]/public_html/911truthalliance.org/addbook/include/dbconnect.php on line 45

@GenLaratonda
Copy link
Author

Changed line 45 to mysqli_connect() and now get a blank page...

$db = mysqli_connect("$dbserver", "$dbuser", "$dbpass");

@GenLaratonda
Copy link
Author

I tried this and still get a blank page:

// --- Connect to DB, retry 5 times ---
for ($i = 0; $i < 5; $i++) {

$level = error_reporting();
error_reporting(E_ERROR);
// $db = mysql_connect("$dbserver", "$dbuser", "$dbpass");
$db = mysqli_connect("127.0.0.1",$dbuser, $dbpass); 
mysqli_select_db("phpadbk");
error_reporting($level);

$errno = mysql_errno();
if ($errno == 1040 || $errno == 1226 || $errno == 1203) {
    sleep(1);
}  else {
    break;
}

}

@GenLaratonda
Copy link
Author

I give. Please put out a script that functions exactly like your screenshots show on the homepage of your project.

// --- Connect to DB, retry 5 times ---
for ($i = 0; $i < 5; $i++) {

$level = error_reporting();
error_reporting(E_ERROR);

// Create connection
$conn = new mysqli($dbserver, $dbuser, $dbpass, "phpadbk");
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

error_reporting($level);

$errno = mysql_errno();
if ($errno == 1040 || $errno == 1226 || $errno == 1203) {
    sleep(1);
}  else {
    break;
}

}

@GenLaratonda
Copy link
Author

I will pay you to make it work as seen on the homepage of your project with the Google Maps integration. I just want a simple address book where people can login and share as much or as little information about themselves (first name, last name, address, city, state/province, zip, country, phone, email, & any social media links). It would be especially helpful to filter by state or distance from location. I'm trying to connect activists for a specific cause.

@chatelao
Copy link
Owner

chatelao commented Mar 7, 2021

Hi, thanks for the offering to sponsor an update. I'm sorry, due to kids my time is reduced, but I think maybe there could be people able to fix this.

Two questions:

  • Which features do you need?
  • How much would be +/- the budget you imagine?

Thanks already for you support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants