J
|
Jane 4/11/2007 |
Larry,
|
L
|
larryl author 4/11/2007 |
I am not using the order by clause and it is being ordered by phone number automatically. I would like to have the result records completely randomized each time a search is preformed. Is that possible with your program? |
G
|
gverras 7/18/2007 |
Larry, please see my answers below:
|
J
|
Jane 7/19/2007 |
George, $strSQL1 = substr($strSQL,0,strpos($strSQL,"ORDER BY")); $strSQL2 = substr($strSQL,strpos($strSQL,"ORDER BY")); if (!strpos($strSQL," where ")) $strSQL = $strSQL1." where 1=0 ".$strSQL2; |