I've used strip_tags, is there a better way to secure this query? the value will always be numeric,
It's being displayed like this http://www.somesite.com/listing.php?id=5
The id will always be a different number not always 5 depending on the listing
$sql = "SELECT * FROM listings where id=" . strip_tags($id) . "";