hi thanks
it worked but The result was not what I had expected
this is furniture_ch table
Id
|
Name
|
Address
|
Tell
|
F_code
|
behcode
|
1
|
Paris
|
Paris
|
123456
|
1
|
1111
|
2
|
Milan
|
Milan
|
123456
|
3
|
2222
|
3
|
Italy
|
Italy
|
123456
|
5
|
3333
|
4
|
India
|
India
|
123456
|
1
|
4444
|
5
|
china
|
china
|
123456
|
1
|
5555
|
furniture_p Table
Id
|
Image
|
Name
|
Behcode
|
date
|
1
|
Image1
|
Name1
|
1111
|
2012-03-09 18:20:41.260
|
2
|
Image2
|
Name2
|
4444
|
2012-03-09 18:29:28.443
|
3
|
Image3
|
Name3
|
4444
|
2012-03-09 18:29:49.610
|
4
|
Image4
|
Name4
|
1111
|
2012-03-09 18:30:19.357
|
5
|
Image5
|
Name5
|
2222
|
2012-03-09 18:30:45.277
|
6
|
Image6
|
Name6
|
4444
|
2012-03-09 18:31:11.423
|
The result is that I am expected
name
|
address
|
tell
|
behcode
|
India
|
India
|
123456
|
4444
|
Paris
|
Pari
|
123456
|
1111
|
all user insert product in same date but time is different and user with behcode=4444 insert product recently so it should shows above result but when i run site show this result
Name
|
Address
|
Tell
|
behcode
|
paris
|
paris
|
123456
|
1111
|
India
|
india
|
123456
|
4444
|
China
|
China
|
123456
|
5555
|
paris
|
paris
|
123456
|
1111
|
India
|
india
|
123456
|
4444
|
China
|
China
|
123456
|
5555
|
paris
|
paris
|
123456
|
1111
|
India
|
india
|
123456
|
4444
|
China
|
China
|
123456
|
5555
|
paris
|
paris
|
123456
|
1111
|
India
|
india
|
123456
|
4444
|
China
|
China
|
123456
|
5555
|
paris
|
paris
|
123456
|
1111
|
India
|
india
|
123456
|
4444
|
China
|
China
|
123456
|
5555
|
paris
|
paris
|
123456
|
1111
|
India
|
india
|
123456
|
4444
|
China
|
China
|
123456
|
5555
|
it shows all user with f_code=1 that are in furniture_ch 6 time
why?
there isnt user with cehcode=5555 in furniture_p table but in result shows this user