Hi, I am a amateur here.

My web developer went awol and I have an issue; my website wont load at all.

Error: PHP Fatal error: Uncaught Error: Call to undefined function mysql_pconnect

<?php
if(!session_id() || session_id() == '')
session_start();

FileName="Connection_php_mysql.htm"
Type="MYSQL"
HTTP="true"

//$hostname_quantum = "xxxxx.co.za";
//$hostname_quantum = "xxxxx.com";
$hostname_quantum = "localhost";
$database_quantum = "xxxxxt";
$username_quantum = "xxxxx";
$password_quantum = "xxxxxx";

$quantum = mysqli_connect($hostname_quantum, $username_quantum,$password_quantum) or trigger_error(mysql_error(),E_USER_ERROR);

Any assistance would be advisable.

I tried - but page is loading as a blank webpage.

You error message tells you that you appear to be using the function mysql_pconnect somewhere. This function was removed in PHP 7. If you had an upgrade recently, this may be the reason for the crash. Rewrite your code using mysqli_connect instead.

commented: Thank you. I am getting the below error now: PHP Fatal error: Uncaught Error: Call to undefined function mysql_se +0

PHP Fatal error: Uncaught Error: Call to undefined function mysql_se

Please post your new code, and the full error message.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.