Code -
$price = mysqli_real_escape_string($connect,trim($results['price']));
price is retrieved from the database, and then echoed using -
echo $price;
Question - Is this safe enough from XSS or SQL Injection? It simply includes numbers.
Thanks