I have a table houses
with this sample data:
id name info
--------------------------------------------------------------------------------------
1 House 1 {"adress":"Hello Street","Number":"123","City":"Rome","CAP":"12345"}
2 House 2 {"adress":"Bye Street","Number":"456","City":"Amsterdam","CAP":"6789"}
3 House 3 {"adress":"SQL Street","Number":"987","City":"Paris","CAP":"54321"}
This is my PHP code:
$query=mysqli_query($conn,"SELECT * FROM houses WHERE name LIKE '%$housename%'")or die(mysqli_error($conn));
$row=mysqli_fetch_array($query);
echo <?=($row['info'])?>;
In this case, it will output the whole string, how do I output only a piece of the string for example only the address:
Adress:Hello Street
or "adress":"Hello Street"