Jump to content

[SOLVED] List without repeating phonenumbers!!!!


chanchelkumar

Recommended Posts

Actually am getting some values to my database on datewise...

 

i want to pullout these values to a excel sheet without the repeated phone numbers...

 

my coding is not started yet.... 

 

i want a guideline to this...

 

how to do this...

 

`id` int(10) NOT NULL auto_increment,

  `startdate` varchar(20) default NULL,

  `content` longtext,

  `price` varchar(45) default NULL,

  `phone` varchar(255) default NULL,

  `location` varchar(250) NOT NULL default '',

  `enddate` varchar(20) NOT NULL default 'Null',

  `category` varchar(255) NOT NULL,

  `post` varchar(255) NOT NULL,

  PRIMARY KEY  (`id`)

 

 

this table will upadate datewise... ie new values will enter into this table daily...

somtimes the same phone no: will also enter.....

 

tell me if you want more details...(or if am wrong)...

please get me some code....

 

i checked it with your link.....

We're not here to write your code for you, go to the freelance board if that's what you're after.

 

Otherwise, make an honest attempt at writing the code and come back when you get stuck.

Well Guru...

 

I got stucked and came here for a solution....

 

I know my codes have some errors..

 

i tried with dis

 

SELECT distinct content,phone,location,startdate,category,enddate FROM dtmn_url2 where category='$res1' and  startdate >='$date3' and startdate <='$date5' and location like '%$location%'

 

But this returns with repeated phone numbers....

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.