Jump to content

[SOLVED] List without repeating phonenumbers!!!!


chanchelkumar

Recommended Posts

`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)...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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.