Log in

View Full Version : Simple Concantation Question


ZomgStuff
05-26-2007, 11:34 PM
Why won't this work?

<td class="alt1" width="25%" align="center"><span class="smallfont"><a href="member.php?u=" & $data[userid]>$banusername</a></span></td>

it's supposed to create a link with with the person's userid in an array, and the link displays their username. Both getting their username and userid works but it's something about concantation because the link doesn't have the number.

harmor19
05-27-2007, 01:35 AM
You don't need to concatenate anything.


<td class="alt1" width="25%" align="center"><span class="smallfont"><a href="member.php?u=$data[userid]>$banusername</a></span></td>

ZomgStuff
05-27-2007, 01:43 AM
Oh okay thank you!

harmor19
05-27-2007, 02:10 AM
<td class="alt1" width="25%" align="center"><span class="smallfont"><a href="member.php?u=$data[userid]">$banusername</a></span></td>

I forgot a closing quote.