whos-online with php 7.2.2? (resolved!)

I was just going to post on this. As I am upgrading to php 7…

It all breaks on these functions.

$wo_dbh = mysql_connect($C['dbhost'], $C['dbuser'], $C['dbpass']);
if (!$wo_dbh) die('Could not connect: ' . mysql_error($wo_dbh));
mysql_select_db($C['dbname'],$wo_dbh) or die(mysql_error($wo_dbh));

if there is someone who knows how to fix this that would be great, but those functions dont work in php 7. I tried to use the new functions, but really dont know what I’m doing that much and never got it to work.

Any fixes would be great.