On Wed, Aug 22, 2001 at 12:40:05AM -0600, Camilo Rostoker wrote:
> Hi,
> 
> I'm trying to create a search engine that sorts the results by
> relevance.  Relevance means the number of times the tuple was
> selected during the search phase.  How can I check table if a tuple
> exists (ie: has the same primary key)?

I'm not quite sure what you're after...  You want to know if a record
already exists in the table?  Maybe you can re-phrase the question or
give more detail?  Or let someone else answer--maybe I'm just reading
it wrong.

> Also, I'm designing this application on a remotely hosteed database
> server.  It seems the server is setup to print any error messages to
> the standard output, which of course is my webpage.  Is there anyway
> to ask MySQL (like when connecting) to NOT print the error output?

In what language?

In PHP, you can put an '@' sign before mysql_* function calls to
suppress the error messages.  Check the PHP docs for more info.

In Perl/DBI, you can make sure that RaiseError => 0 in your connection
parameters.  See the DBI man page (perldoc DBI) for details.

Jeremy
-- 
Jeremy D. Zawodny, <[EMAIL PROTECTED]>
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

MySQL 3.23.41-max: up 4 days, processed 60,022,486 queries (139/sec. avg)

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to