> Thanks for the link, anyway. I've visited it, but it still not what i
> expected.
We don't know what you expected at all, you haven't said. That
example does what you asked ; searches a private database. More
detail might help.
> My goal looks like site's Ace Hardware locator
So use a debugger to see how that works. You won't be able to see how
the SQL parts work, but that is off-topic for maps and more suited to
MySQL tutorial or forums.