[snip] I'm not able to reproduce this in a short code-snippet. But from the first echo to the last echo $lid change its value:
if ($hostid==31) echo "lid1: $lid"; # Paragraphs [/snip] $lid is getting set the first time before the IF statement. From this IF to the last $lid in what you posted I couldn't find anything re-setting $lid. So you must be doing it outside of the code block. What is the initial value of the variable, and what does it change to? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php