echo statement

Thread Solved

Join Date: Oct 2007
Posts: 178
Reputation: lordx78 is an unknown quantity at this point 
Solved Threads: 2
lordx78's Avatar
lordx78 lordx78 is offline Offline
Junior Poster

echo statement

 
0
  #1
Mar 8th, 2008
  1. echo "<td align=center style='width: 30px'><strong><a href='' . $link1 . '' style='color: red'>CID</a></strong></td>";

Is this part properly coded
  1. <a href='' . $link1 . '' style='color: red'>

I tried like
  1. <a href="' . $link1 . '" style='color: red'>
but not working.

Pls advise.
Last edited by lordx78; Mar 8th, 2008 at 4:19 am.
"I might not be the BEST but I'm not like the REST!"
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 84
Reputation: johnsquibb is an unknown quantity at this point 
Solved Threads: 14
johnsquibb's Avatar
johnsquibb johnsquibb is offline Offline
Junior Poster in Training

Re: echo statement

 
0
  #2
Mar 8th, 2008
  1. echo "<td align=center style=\"width: 30px\"><strong><a href=\"$link1\" style=\"color: red\">CID</a></strong></td>";
Last edited by johnsquibb; Mar 8th, 2008 at 4:25 am. Reason: changed all to escaped double quotes
The End
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 84
Reputation: johnsquibb is an unknown quantity at this point 
Solved Threads: 14
johnsquibb's Avatar
johnsquibb johnsquibb is offline Offline
Junior Poster in Training

Re: echo statement

 
0
  #3
Mar 8th, 2008
another way to tackle it would be...

  1. echo '<td align=center style="width: 30px"><strong><a href="' . $link1 . '" style="color: red">CID</a></strong></td>';
The End
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 178
Reputation: lordx78 is an unknown quantity at this point 
Solved Threads: 2
lordx78's Avatar
lordx78 lordx78 is offline Offline
Junior Poster

Re: echo statement

 
0
  #4
Mar 8th, 2008
Thanks alot. solved
"I might not be the BEST but I'm not like the REST!"
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC