I am getting a php warring
Warning: Illegal string offset 'item_id' in
trying excute this code
<?php
error_reporting(0);
include ('includes/db.inc.php');
include ('includes/items.inc.php');
include ('header.php');
$user_id=$_SESSION['user_id'];
$sqll= "SELECT 'transcription.item_id' FROM transcription left JOIN items ON 'items.item_id' = 'transcription.item_tra_id';" ;
$resultt= mysqli_query($conn,$sqll);
$resultts= mysqli_num_rows($resultt);
//echo $results;
$rers = mysqli_fetch_assoc($resultt);
foreach ($rers as $rerss) {
echo $rerss['item_id'] ;
}
?>
I was searching an found out that I need to to wrap the array key in quotes and that exactly what I have did but still the same issue, also I don't know if my SQL statements is correct.