help with mysql functions...

    Date: 06/05/05 (PHP Community)    Keywords: mysql, sql

    ...Using if (mysql_db_query ($DBName, $Query, $Link))

    (Yes, I know its depreciated)

    Problem: my query has two conditions x='$x' AND y='$y'

    if either x or y is incorrect (but one is right), mysql_error() does not return an error. I assume its returning "TRUE".

    My question: How do I detect "TRUE" but ""?


    if (mysql_db_query ($DBName, $Query, $Link)) does not seem to be what I need.

    Source: http://www.livejournal.com/community/php/304716.html

« A really stupid logical... || PHP doesn't wanna... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home