Hey guys I'm having a bit of trouble trying to make my SQL column a variable in PHP.
So my SQL row contains image URL's and are formatted like this:
http://www.website.com/image.jpg,http://www.website.com/image2.jpg,http://www.website.com/image3.jpg
So now I need to display the first URL in the row.
I have this short line of code:
file = '.(explode(',', $cardata["PictureRefs"])[0]).';
I am basically trying to give the variable a value of:
$file = "http://www.website.com/image.jpg"
My current code is obviously wrong however I feel like I must be quite close. How can I achieve this?