Jump to content

Showing columns


Jon12345

Recommended Posts

well you have to do more than that
[code]<?php
$sql = "SELECT kid, count(action) AS count
from visitor_log
group by kid";
$res = mysql_query($sql) or die (mysql_error());
while($row= mysql_fetch_assoc($res)){
  echo "<tr>
        <td>".$row['kid']."</td>
        <td>".$row['count']."</td>
      </tr>";
}
?>[/code]

Ray
Link to comment
https://forums.phpfreaks.com/topic/31416-showing-columns/#findComment-145433
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.