|
frontpage$randomindex2.JPG
I think your issue would have to do with the logic here. Where is there in your photos table an image named this?
I don't get the logic of that photo name. In PHP $random would be treated as a variable so I can only assume the image is not named what your searching for and thus your query results are NULL.
|