$name=strtoupper($_POST['name']); $query="select * from name where strtoupper(name)='$name'";
With SQL, it's just upper, not strtoupper
$query="select * from name where upper(name)='".strtoupper($name)."'";
thanks that works