LOOP IN PHP / MYSQL -


i have record of dates , logid. wonder if display dates depending on logid 2017-09-01 2017-09-05 logid = 015511439 2017-09-01 2017-09-05 9272276416.

i made loop php

for ($x = 0; $x <= 1; $x++)  

then @ mysql plain

select date, logid mytable 

.

enter image description here

thanks in advance

    $query = "select * mytable";      $results=mysql_query($query);      $row_count=mysql_num_rows($results);        while ($row_users = mysql_fetch_array($results)) {          //output row here  if($row_users['logid']=="015511439"){          echo ($row_users['date']);          echo ($row_users['logid']);          }      }

or without if condition can using clause.... hope looking for


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -