Gubbins Posted January 10, 2009 Share Posted January 10, 2009 I currently have this in some of my scripts and it works fine:- print ("<link rel=\"stylesheet\" type=\"text/css\" href=\"connections/style.css\" />"); But i want to covert this:- <link href="<? echo $style_g; ?>" rel="stylesheet" type="text/css"> Into the same format, can anyone help please? Link to comment https://forums.phpfreaks.com/topic/140267-solved-can-this-be-converted/ Share on other sites More sharing options...
killah Posted January 10, 2009 Share Posted January 10, 2009 Isn't print(''); already part of the php syntax? And if so why would you want to take it out of the print syntax. I would use this: echo '<link rel="stylesheet" type="text/css" href="' . $style_g . '">'; Link to comment https://forums.phpfreaks.com/topic/140267-solved-can-this-be-converted/#findComment-733971 Share on other sites More sharing options...
Gubbins Posted January 10, 2009 Author Share Posted January 10, 2009 killah You are a star, it worked a treat! Thank you very much! I wish i had you coding for me! Link to comment https://forums.phpfreaks.com/topic/140267-solved-can-this-be-converted/#findComment-733975 Share on other sites More sharing options...
killah Posted January 11, 2009 Share Posted January 11, 2009 Glad to help. Link to comment https://forums.phpfreaks.com/topic/140267-solved-can-this-be-converted/#findComment-734798 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.