Jump to content

Archived

This topic is now archived and is closed to further replies.

Gubbins

[SOLVED] Can this be converted?

Recommended Posts

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?

 

 

Share this post


Link to post
Share on other sites

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 . '">';

Share this post


Link to post
Share on other sites

killah

 

You are a star, it worked a treat!

 

Thank you very much!

I wish i had you coding for me! ;)

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.