Code:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/******/public_html/******/dedi.php:44 Stack trace: #0 {main} thrown in /home/******/public_html/******/dedi.php on line 44
Lines 44, 45, and 46.
Code:
Line 44: $db = mysql_connect($djsamip, $djsamname, $djsampass);
Line 45: mysql_select_db($djsamdb,$db);
Line 46: $result = mysql_query("SELECT * FROM queuelist q LEFT JOIN requestlist r ON q.requestid = r.id LEFT JOIN songlist s ON q.songid = s.id ORDER BY q.sortID ASC LIMIT 50",$db);
Would anyone know how I can fix this to use with PHP 7.2x
I did change mysql to mysqli, but that lead to a different error. Which is the following:
Code:
Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in
On line 45 & 46 & 78
Code:
line 45: mysqli_select_db($djsamdb,$db);
Line 46: $result = mysqli_query("SELECT * FROM queuelist q LEFT JOIN requestlist r ON q.requestid = r.id LEFT JOIN songlist s ON q.songid = s.id ORDER BY q.sortID ASC LIMIT 50",$db);
Line 78: if ($myrow = mysqli_fetch_array($result)){
And it shows the proper information, except it, shows the error above.
Only when using:
error_reporting(E_ALL);
ini_set('display_errors', 1);
Otherwise no errors show up.
_________________
Mark L. - SVS (Spacial Volunteer Support)
-------------------------------------------------
DJ Fire - CEO
http://www.crossfire-radio.com