-1
made a query
where I got the result of this query, however what I need is this result displays only one line, a single record but in reality you more than one: follow the code below and please show me where I am missing because I can’t see the error or the lack of any element..
if (empty($_POST['contrato'])) {"";}
if(isset($_POST['contrato'])) {"";
if($_POST['contrato'] == "") {"";}
else{
$cmd = "SELECT login FROM tecnicos GROUP BY Area = '%$Roteamento%' ";
$login_tecnico = mysqli_query($conn, $cmd);
$row = mysqli_num_rows($login_tecnico);
if($row == " ") {" ";} else{
while ($res = mysqli_fetch_array($login_tecnico)) {
$tec_login = $res['login'];
successfully displays the variable tec_loogin
, but as said this displays only 1 record when actually has more than one, my question is how to display all?? help me...
You are grouping all results with Area = Routing, if all your records are like this, you will certainly return a single result, try using WHERE
– Darlei Fernando Zillmer
I have done so, unsuccessfully.
– Expert Ortega
I just want to make a query and through it display all the results of the column understand.
– Expert Ortega
you can show some values that are in the column
Area
?– user60252
yes can, these are areas: AREA 05 AREA 06 AREA 24 AREA 25 AREA 30 AREA 31 AREA20 , and each area has its login.
– Expert Ortega