I was wondering if i should still use mysqli_real_escape_string in this situation
I have a set list of url parameters that are accepted otherwise they are ignored.
if(isset($_GET["data"])) {  
  $data = $_GET["data"]; 
  switch($data) { 
    case "one" :
      //do x
      $sql = "SELECT * FROM table WHERE page='".$data."'";
    break;
    case "two" :
      //do x
    break;
    case "three" :
      //do x
    break;
  }
}
 
     
    