Hi I have been shown how to call an image from a variable can someone please show me how to call an html file using the same variable

so in other words say the $memid = 1234 then this below inserts the image 1234.jpg so how do I get another line to call 1234.html

print "<img src=\"/gfx/".(string)$row["memid"].".jpg\">";