So currently I’m trying to put data from mysql into a php variable. This is mainly because I don’t want to have to go back and change everything that has a variable into the mysql variable, and I’ve been getting errors. I was wondering if there was anything I could do to get this work?
This is what I was trying to do, I also tried a few variants of this and the only big issue I was getting was “Uncaught Error: Cannot use object of type mysqli_result as array” Which makes me think this is basically impossible and I gotta stop being lazy.
$HOST= mysqli_fetch_assoc($result[‘host’]);