943,948 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 773
  • PHP RSS
Mar 8th, 2008
0

echo statement

Expand Post »
php Syntax (Toggle Plain Text)
  1. echo "<td align=center style='width: 30px'><strong><a href='' . $link1 . '' style='color: red'>CID</a></strong></td>";

Is this part properly coded
php Syntax (Toggle Plain Text)
  1. <a href='' . $link1 . '' style='color: red'>

I tried like
php Syntax (Toggle Plain Text)
  1. <a href="' . $link1 . '" style='color: red'>
but not working.

Pls advise.
Last edited by lordx78; Mar 8th, 2008 at 4:19 am.
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster
lordx78 is offline Offline
180 posts
since Oct 2007
Mar 8th, 2008
0

Re: echo statement

php Syntax (Toggle Plain Text)
  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
Reputation Points: 14
Solved Threads: 14
Junior Poster in Training
johnsquibb is offline Offline
84 posts
since Nov 2007
Mar 8th, 2008
0

Re: echo statement

another way to tackle it would be...

php Syntax (Toggle Plain Text)
  1. echo '<td align=center style="width: 30px"><strong><a href="' . $link1 . '" style="color: red">CID</a></strong></td>';
Reputation Points: 14
Solved Threads: 14
Junior Poster in Training
johnsquibb is offline Offline
84 posts
since Nov 2007
Mar 8th, 2008
0

Re: echo statement

Thanks alot. solved
Reputation Points: 10
Solved Threads: 2
Junior Poster
lordx78 is offline Offline
180 posts
since Oct 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Can any one help me?
Next Thread in PHP Forum Timeline: Deleting Files





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC