What is the problem with following code..

if ( $row!=0 )
   {
     $res=mysql_fetch_object($result);

     if( $res->inv_status=="ASSIGNED")
     {
      echo "<h2>It is in assigned state. Please first return it and then
change the status</h2>";
      exit;
     }
     elseif( $res->inv_status=="AVAILABLE")
     {
      // Delete the item from tinventory Transaction  table
      $sql1="DELETE from tinventory where inv_tag='$inv_tag';

      $result1 = mysql_query( $sql1 ) or die('Unable to execute query1');

      }



----------------------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers
and is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
---------------------------------------------------------------------------------------------------------------------------------

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to