Does someone see a reason why extract() in line 7 below shouldn't work. The database access is working because I can see in line 6 that the timestamp at $row is correct and the firstName at $row is correct. But extract($row) doesn't create the variables $timestamp and $firstName.
Thanks for any insight.
$db = db_connect();
$query = "SELECT timestamp, firstName FROM sales WHERE transactionID = '$transactionID'";
$result = mysqli_query($db, $query)
or die ("Couldn't execute query");
$row = mysqli_fetch_row($result);
echo "\$row = $row, \$row = $row";
echo "\$timestamp is $timestamp \$firstName is $firstName";