I'm trying to save my database columns as strings so I can use the split function to get an array of each item that is separated by a comma.
So far my code looks like this:
//player chose to load an existing game, if one exists load it, otherwise start a new game
$mysqli = new mysqli("localhost", "root", "", "webdevfinal");
echo "Connection Failed: " . $mysqli->connect_errno;
$result = $mysqli->query("SELECT r1 FROM gamefiles");
echo(var r1array = $row.split(','));
Thanks in advance.