chatelao/php-addressbook

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

GenLaratonda opened this issue · 5 comments

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

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

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

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;
}

}

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;
}

}

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.

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.