Junior Spellweaver
- Joined
- Aug 14, 2008
- Messages
- 146
- Reaction score
- 12
Alright, so I'm trying to setup a page where it displays how many points I have.
$ucoins = mysql_query("SELECT votingpoints FROM accounts WHERE `name`='".$i['name']."");
I have my query, but it keeps turning out as "0".
What I want is it to say "You have 1 U-Coin(s)".
So what I tried to do is this:
echo"You have " + $ucoins " U-Coin(s)"; -- this gave me a zero that didn't follow HTML code (<br>'s and what not didn't work)
The biggest problem I'm having is formatting it, and getting the users username. The user would have to be logged in. How would I check what account the user logged in with?
Thanks
$ucoins = mysql_query("SELECT votingpoints FROM accounts WHERE `name`='".$i['name']."");
I have my query, but it keeps turning out as "0".
What I want is it to say "You have 1 U-Coin(s)".
So what I tried to do is this:
echo"You have " + $ucoins " U-Coin(s)"; -- this gave me a zero that didn't follow HTML code (<br>'s and what not didn't work)
The biggest problem I'm having is formatting it, and getting the users username. The user would have to be logged in. How would I check what account the user logged in with?
Thanks