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

having a small php error tha deals with the 'foreach'
Last night i was working on a script for a cart and it seemed to working good, until this morning. F

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

Where do I put CRON code
So I've figured out alot about how to automatically run a php function. I can't figure out where to

.htpasswd Registration Form
Hi,
I wanted to make an htpasswd registration form.
I found this code on the internet but have

background color imagefill
Hello

I would like to ask you why I see this square in red color just in my local xampp insta

storing video files into mysql in php
hi

i have my video files in my folder ,
i have to store the path of the videos into db an

Call Screen statement Error
Dear Experts,

is there any setting that needs to be done before creating any dialog progr

Create multiple (n) arrays
Hi there,

I have the following need:

I have 2 arrays (coming from a databases)

Need Help with a query
Hello,
For some reason I am just not getting the right answer when I do this query and not quite

Securing a user input - need some confirmation
Hello All,

I am in the process of recoding a large proportion of an e-commerce site, one of t

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