Trying to display images in html by calling a php script in the img tag. php script fetches the image binary from mysql. image is not displaying. here is img tag
<img src="getdata.php?id=1" />
my question is, it seems people are using the "...php?id=1" to pass an identifier 'id' to the script. I haven't been able to find anything about how these work, what the syntax is, and whether this automatically creates a variable '$id' in the script with a value of 1, which is implied, but since i can't get the script to work i cannot determine if accurate. Can anyone either explain or point to a resource that handles this?