Conditional Statement in PHP

Alright, So I’m trying to use PHP to look at the users browser and if they have IE6 or below it shows them one page and everything else is shown another.

I did an online search for the correct code but none of the browsers read the code properly:

<?php
	 
	 	if(browser_detection('browser') == 'ie6')
		{
            include 'ienavi.html';
			}
		else{
            include 'ffnavi.html';
			}
	?>