Closed eugenefvdm closed 11 years ago
What was the fail error that you got on this?
To clarify, the die statement has no IF THEN block so using the code as as simply does not work:
//Connect to the radius database
$mysql = mysql_connect($freeradius_db_host,$freeradius_db_username,$freeradius_db_password);
$conn = mysql_select_db($freeradius_db_database);
die( "Could not connect to WHMCS database: " . mysql_error() . "\n" );
//end
Remedy is to remove the 'die' command or implement error checking.
Seems Mysql error checking was possibly omitted so this line fails.
The workaround is to simply comment out or remove the line above.