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=""/> '; Quote 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 Quote 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; Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.