T
|
thesofa 11/7/2006 |
this involves using the HAVING key word, if you look at my post about searching aggregate values you will find how I got round it. |
J
|
Jean author 11/7/2006 |
Say, are you really a speaking sofa ? |
T
|
thesofa 11/7/2006 |
Ok, please give us more details about what you are trying to do?????? |
J
|
Jean author 11/11/2006 |
Ok... |
T
|
thesofa 11/12/2006 |
Ok... My users would be happy if they could do a simple search with "+word1 +word2 -word3" (1). I think they would remain happy with just ""+word1 +word2" (2).
|
J
|
Jean author 11/12/2006 |
when you ask for word1+word2, am I right in thinking that word1 and word2 are stored in the same field in the database?
|
T
|
thesofa 11/12/2006 |
I think this post about searching for 2 values in one field may answer your question |
J
|
Jean author 11/12/2006 |
I think this post about searching for 2 values in one field may answer your question
|
T
|
thesofa 11/12/2006 |
a votre service |
T
|
thesofa 12/7/2006 |
Hi, its me again. $gstrOrderBy=
$gstrOrderBy="ORDER BY `pupils`.`lname` ASC"; all I have to do is replace it with this line $gstrOrderBy=" Having Count(`ID`) >=5 ORDER BY `pupils`.`lname` ASC";
$gstrSQL = "select Count(`ID`) AS `Total` ,
|
J
|
Jean author 12/7/2006 |
Hi, its me again.
|
T
|
thesofa 12/7/2006 |
Bon |
T
|
thesofa 12/7/2006 |
OK, so I have been playing a bit more, and i have found that the solution given above breaks when I click on a column head to sort by a different column. // process session variables // order by if($order_dir=="a")
if($order_dir=="a")
$strOrderBy=" order by ".($order_ind+1)." desc"; to read $strOrderBy="having Count(`ID`) >='5' order by ".($order_ind+1)." desc";
to suit your needs! |