So I am getting my butt kicked this morning before break trying to insert AT&T, well the & in general, from a text box into MSSQL. My problem is im not getting a return of test or test2. I am also not sure if \& is what I need to return but I havent gotten that far.
if (strpos($str, "&") !== FALSE){
return "TEST";
//return str_replace("&","\&",$str);
}else{
return "Test2";
//return $str;
}