I have an integer in a SQL database, I am trying to find the value of that integer in php. The integer is the number of likes of a photo. Here is my query:
$result = query("SELECT likes FROM NSPhotos WHERE IdPhoto='%s' LIMIT 1", $imageID);
How do I get the integer value out of "$results"?