donkon Posted March 8, 2009 Share Posted March 8, 2009 echo "<div class='clink'><a href='".$site.$path."c/$adr/1/'>$rowpcat[category]</a></div>"; i just want text infront of all that, I tried adding an echo above but that makes text appear above the categories, i want it on the same line. I also tried inserting text commented inside the above but that didn't work. Im a total noob please help. Link to comment https://forums.phpfreaks.com/topic/148515-how-do-i-add-text-to-this-line/ Share on other sites More sharing options...
Mchl Posted March 8, 2009 Share Posted March 8, 2009 Time to learn HTML basics... (yes, this is HTML issue) echo "<div class='clink'>Your text in here <a href='".$site.$path."c/$adr/1/'>$rowpcat[category]</a></div>"; Link to comment https://forums.phpfreaks.com/topic/148515-how-do-i-add-text-to-this-line/#findComment-779891 Share on other sites More sharing options...
donkon Posted March 8, 2009 Author Share Posted March 8, 2009 nope not working, its not working as i want it. Still coming out on top of the actual output, i can do that without adding within it, by a <div> sdsdsd</div> before the php code. I assumed if i entered before the class input on that line it would be for example: My text here "content" but its still showing as My text here "content" I want it on 1 line Link to comment https://forums.phpfreaks.com/topic/148515-how-do-i-add-text-to-this-line/#findComment-779994 Share on other sites More sharing options...
Mchl Posted March 9, 2009 Share Posted March 9, 2009 Then it's most probably CSS styling issue. Link to comment https://forums.phpfreaks.com/topic/148515-how-do-i-add-text-to-this-line/#findComment-780171 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.