I just moved to Digital Ocean (PHP 7.0) and im making a global.php file to pass the admin id that is logged and the admins information. I have ran into an error. I don't know if this is the new php version because i was using PHP 5.6 then i moved here to use 7 and have no cpanel to learn linux commands. Below is my code:
*header.php includes global.php below the mysql.php which connects to the db if you think i forgot to add that, it is included.
<?php
$adminid = $_SESSION['adminid'];
$adminGet = $conn->query("SELECT * FROM admins WHERE id = '$adminid'");
$adminFetch = $adminGet->fetch_array(MYSQL_ASSOC);
$admin_first = $adminFetch['first_name'];
$admin_first is not reporting firstname. This table does indeed exist and does have admin id 1 which is the session id that is in use (i checked by echoing $_SESION['adminid']
Admins table: http://prntscr.com/fohwtc
Any help is appreciated!