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. Quote 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>'; Quote 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>'; Quote 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>'; Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/215847-link/#findComment-1123676 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.