Witam mam pytanie jak wyświetlić to co zostało pobrane w kolumnie mam dwa atrybuty
I chciałbym to wyświetlić tak najpierw test1 później test2
Napisałem coś takiego, ale nie działa.
<?php
session_start();
$id_user = $_SESSION['id_user'];
include('/php/connect.php');
$res = $mysqli->query("SELECT s_name FROM service WHERE id_user=$id_user");
while ( $a = mysqli_fetch_array($res)) {
echo $a[1];
echo "<br>";
echo $a[2];
}
?>