> From: Lowell Allen <[EMAIL PROTECTED]> > [snip] > > // check cURL results > if ((trim($curl_results) != 1) || (trim($curl_results) != 0)) { > // maybe nothing returned, bail out > echo("<p>Can't confirm results of attempt to add to database!</p>\n"); > exit; > }
I knew I'd find a stupid mistake as soon as I posted the question. I was using a condition that could never be true, instead, I needed: if ((trim($curl_results) != 1) && (trim($curl_results) != 0)) Sorry. -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php