I have the following problem:
When performing a query, the result of the while is composed of more than one value, for example:
$query_sku = mysqli_query($connect, "SELECT t.column_name
FROM skus AS s
INNER JOIN table AS t ON t.column_id = s.column_id
WHERE s.id_sku = '{$id_sku}'");
WHILE($reg = mysqli_fetch_object($query_sku )){
$variable = $reg->column_name;
echo "<br/">;
}
The result of this query / while is:
BATERIA
PARA
CÂMERA
CANON
PowerShot ELPH 330 HS
And if I send it to the database, it will save one return per line:
WhenIactuallywantittoreturnthisway:
BATERIAPARACÂMERACANONPowerShotELPH330HS
AndsavetotheDatabaseinjustoneline: