jakebur01 Posted March 5, 2009 Share Posted March 5, 2009 How can I make my variable work here? I cannot seem to get my quotes right. $myPic = ' <IMG SRC="$treatment_link" width="100" align="top" vspace="2" alt=""/> '; Link to comment https://forums.phpfreaks.com/topic/148161-solved-trouble-making-variable-work/ Share on other sites More sharing options...
Stephen68 Posted March 5, 2009 Share Posted March 5, 2009 <?php $myPic = "<IMG SRC=\"".$treatment_link."\" width=\"100\" align=\"top\ vspace=\"2\" alt=\"\"/> "; ?> I think would do it Link to comment https://forums.phpfreaks.com/topic/148161-solved-trouble-making-variable-work/#findComment-777734 Share on other sites More sharing options...
jakebur01 Posted March 5, 2009 Author Share Posted March 5, 2009 Yea, I tried that first. I couldn't get it to work. Here is the parameter it is going into. $myPic = "<IMG SRC=\"".$treatment_link."\" width=\"100\" align=\"top\" vspace=\"2\" alt=\"\"/> "; $params['nickmeta']['pic'] = $myPic; Link to comment https://forums.phpfreaks.com/topic/148161-solved-trouble-making-variable-work/#findComment-777735 Share on other sites More sharing options...
kickstart Posted March 5, 2009 Share Posted March 5, 2009 Hi Try this:- $myPic = "<IMG SRC='$treatment_link' width='100' align='top' vspace='2' alt='' /> "; All the best Keith Link to comment https://forums.phpfreaks.com/topic/148161-solved-trouble-making-variable-work/#findComment-777743 Share on other sites More sharing options...
jakebur01 Posted March 5, 2009 Author Share Posted March 5, 2009 Your the man! Thanks a lot Keith. Link to comment https://forums.phpfreaks.com/topic/148161-solved-trouble-making-variable-work/#findComment-777751 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.