echo "<td align=center style='width: 30px'><strong><a href='' . $link1 . '' style='color: red'>CID</a></strong></td>";

Is this part properly coded

<a href='' . $link1 . '' style='color: red'>

I tried like

<a href="' . $link1 . '" style='color: red'>

but not working.

Pls advise.

Recommended Answers

All 3 Replies

echo "<td align=center style=\"width: 30px\"><strong><a href=\"$link1\" style=\"color: red\">CID</a></strong></td>";

another way to tackle it would be...

echo '<td align=center style="width: 30px"><strong><a href="' . $link1 . '" style="color: red">CID</a></strong></td>';

Thanks alot. solved

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.