James, Brandon is right about what he is saying. PHP/HTML (or any language for that matter) can't determine what you MEAN to say. It only literally interperts what you have written and it is doing just that.
To get what you want, you have to escape the inside quotes :
$image = "<img src = \"http://whateverpicturepath/you/want/image.gif\" alt = \"what ever text you want\">";
That will work if you make sure to escape () the inside quotes.
James wrote:
I know, and I WAS using that, but it was creating problems...
$image = "<img src = "http://www.mysite.com/images/image.gif" alt="whatever">";
Doesn't work of course, I guess I'll just have to change them all to
$image = "<img src = 'http://www.mysite.com/images/image.gif' alt='whatever'>";
Can't remember why I didn't do that before, hopefully it'll work anyways.
Btw... "use content that users create" I'm not, its set pictures depending on other variables, anyways, I guess its the long way :-(