Gossamer Forum
Home : Products : DBMan : Customization :

Can you stop the STAR ( * ) function ?

Quote Reply
Can you stop the STAR ( * ) function ?
Hi guys,

Just wondering if any of you experts out their can solve a little problem that is driving me absolutely crazy at the moment.

Is it possible to stop users from listing all of the records when they enter the star key ( * ) in the search fields ?

I realise that this may involve a slight change to the code in the db.cgi file, but I feel sure that one of you must have resolved this issue before.

Hope to hear from you soon

Stevie Vincent
Sv@gamersmall.com
Quote Reply
Re: Can you stop the STAR ( * ) function ? In reply to
You can take out a line from db.cgi, sub query:

($in{$db_cols[$field]} eq "*") and ($tmpreg = ".*"); # A "*" matches anything.

You will also want to take out the footer option to "List All," since it uses the *.



------------------
JPD





Quote Reply
Re: Can you stop the STAR ( * ) function ? In reply to
Just wanted to say thanks for the fast response.

Stevie Vincent