yash87 Posted October 14, 2010 Share Posted October 14, 2010 This link dnt seem to work. Can someone help? echo "<td><a href =" . $rows['url'] .">"</a>"</td>"; Thankz. Link to comment https://forums.phpfreaks.com/topic/215847-link/ Share on other sites More sharing options...
Adam Posted October 14, 2010 Share Posted October 14, 2010 It's easier to use single quotes when echoing HTML, as you use double quote more: echo '<td><a href="' . $rows['url'] . '">..link text..</a></td>'; Link to comment https://forums.phpfreaks.com/topic/215847-link/#findComment-1122064 Share on other sites More sharing options...
yash87 Posted October 14, 2010 Author Share Posted October 14, 2010 It's easier to use single quotes when echoing HTML, as you use double quote more: echo '<td><a href="' . $rows['url'] . '">..link text..</a></td>'; if dats d case: is dis right ? echo '<td>". $rows['file_ref'] ."</td>'; Link to comment https://forums.phpfreaks.com/topic/215847-link/#findComment-1122066 Share on other sites More sharing options...
Adam Posted October 14, 2010 Share Posted October 14, 2010 No because you're opening the string with a single quote, then closing with a double: echo '<td>". $rows['file_ref'] ."</td>'; Link to comment https://forums.phpfreaks.com/topic/215847-link/#findComment-1122081 Share on other sites More sharing options...
yash87 Posted October 19, 2010 Author Share Posted October 19, 2010 No because you're opening the string with a single quote, then closing with a double: echo '<td>". $rows['file_ref'] ."</td>'; Thank u. Link to comment https://forums.phpfreaks.com/topic/215847-link/#findComment-1123676 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.