• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problem with a href

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I'm getting a problem with a href it's really a mess in my website.

CEE5ugDUK.png


Code:
$allM3 = $SQL->query ('SELECT `name`, `level` FROM `players` AS p LEFT JOIN guild_membership gm ON p.id = gm.player_id WHERE gm.guild_id = '.$guild_id.' ORDER BY `level` ASC LIMIT 1')->fetch();

Line with a href:
Code:
$lowest .= ' '.$allM3['level'].' (<a href="characters&name='.urlencode($allM3['name']).'</a>)';


How I fix this weird problem?
Thanks.
 
Close the href string and opening 'a' tag, ">. You may also want to include the name between the 'a' tags.
Code:
<a href="url">Name</a>
 
I reiterate.
You may also want to include the name between the 'a' tags.
Code:
<a href="url">Name</a>
You have only a closing parenthesis between the 'a' tags, so of course that is all it shows. Put </a> inside the parenthesis and the name between <a> and </a>.
I'm simply not going to spoon feed you any more than that, if you can't figure it out: http://www.w3schools.com/tags/tag_a.asp
 
Didn't understand this problem:

beeS8e6Kb.png


Have a space in the link, but in the code doesn't have nothing.

Code:
$lowest .= ' '.$allM3['level'].'
         (<a href="characters&name='.urlencode($allM3['name']).'">
         '.($allM3['name']> 0 ? "
         ".htmlspecialchars($allM3['name'])."
         ":"".htmlspecialchars($allM3['name'])."").'</a>)';
 
Im wondering why not just do it simple like

Code:
$lowest .= ' '.$allM3['level'].'
(<a href="characters&name='.urlencode($allM3['name']).'">'.$allM3['name'].'</a>)';

By the way it looks like my template I was using on my ot-server.com server. I hope it is not because I have bought the license for the layout :) at least the background image is the one I have used
 
That is exactly the layout I was using on ot-server.org combinated with RaggarAAC, everything seems to be unchanged even the countdown javascript. I suggest you to change the layout or at least give me the credits for the layout by changing this line the Copyright line to OTServer.org (and link it to my otland profil), thanks.
 
Back
Top