Deleting Duplicate with PHP and MySQL -


need code:

$sql = "select distinct `numero_presentation_technique` tab_num_tache "; $result1 = mysqli_query($mysqli,$sql); $donnees = mysqli_fetch_array($result1); $m_pres_tech = $donnees['numero_presentation_technique']; 

so here i'm asking server unique data table , after display on page.

problem => shows first data of table , repeats time. when using sql request on domain page, works... in advance!

when loop fetch = array ( [0] => 0039nzr4 [numero_presentation_technique] => 0039nzr4 ) when use mysqli_fetch_all() = shows number , repeats

you have loop through results , fetch

while($donnees =  mysqli_fetch_array($result1)) {     print_r($donnees);  echo "<br>"; } 

Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -