Jump to content

newbie help - limit duplicate rows displaying


replaya

Recommended Posts

At the moment my script echo the dates as a link to show when the users entered their details.

2006-12-04
2006-12-08
2006-12-08
2006-12-08

What I am trying to do is just display the dates that are different so it only shows 2006-12-04 and 2006-12-08. So when a person click on the 2006-12-04 it will output all the users who entered their details for that date and same with 2006-12-08.

Your help is much appreciated

[code]
<?php
include ($_SERVER['DOCUMENT_ROOT'].'conn.inc.php');

mysql_select_db("mydatabase");


$query = "SELECT client_added FROM client_information ORDER BY client_added";


$results = mysql_query($query)
or die (mysql_error());
?>
<table width="300">
<?php
while ($row = mysql_fetch_assoc($results)) {
extract($row);

echo "<a href=\"newuser.php?client_id=" .$client_added ."\">";
echo $client_added;
echo "</a>";
echo '<br />';
}
?>
</table>


[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.