Displaying a clickable playername


Posted on 16th Feb 2014 07:03 pm by admin

I am going wrong somewhere with the mysql_query, can someone please put me straight?

$playername = mysql_query("SELECT * FROM `players` WHERE `playername` LIMIT 1");
while($f = mysql_fetch_array($playername)){

$txt = str_replace("[player]", "<a href='profile.php?player={$f['playername']}'>{$f['playername']}>", $txt);
$txt = str_replace("[/player]", "</a>", $txt);
}

No comments posted yet

Your Answer:

Login to answer
95 Like 20 Dislike
Previous forums Next forums
Other forums

Convert Binary String to Decimal
Trying to Get:
Decimal: 305419896

Out of:
Binary String: xV4

user validation always displaying invalid ? please help
Hello,

I have 2 accounts and there is a field in mysql called validated it can be either &quo

Date Question
I'm using the TIMESTAMP() function within mysql to set the date/time for certain events. However, ho

Help Import Animoto and Youtube
CAn someone help me urgently want to allow users on my website to import youtube/revver/dailymotion

download directory onto C drive
I am attempting (if this is possible) to write a routine to automatically dump the contents of a dir

ASP.NET 2.0 - Enter Key - Default Submit Button
Hi,One of the most annoying things in developing web pages is handling the "Enter key" for form subm

Embed Video Problem
Hey, thanks for looking!

File to be embedded:

Code: <playlist version="1&q

Show message after entering data
Hello Colleagues

I would like to display messages after entering the data example: "
dat

dropdown box help - open php files to textarea
Hi, I am using tinymce to edit content located in several php files. The code I attached works but i

Scene graph using Direct3D?
There are several C++ scene graph based packages available for OpenGl, like say OSG,

http://w

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash