Displaying Members

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
icepirates
Forum Newbie
Posts: 6
Joined: Mon Aug 18, 2008 11:11 am

Displaying Members

Post by icepirates »

Hey,

I have a script that displays members that have joined the site...
and for some reason it's displaying the member name in a huge font, but Id like it to display in 9pt and Im unsure how to make the font smaller, but here is my script - this is it for my script, can anyone help?

Code: Select all

<? 
mysql_connect("***","****","***");//database connection 
mysql_select_db("new"); 
                 
$order = "SELECT * FROM users ORDER BY UID";                     
$result = mysql_query($order);   
while($data = mysql_fetch_row($result)){ 
      echo("<tr><td>$data[0]</td><td>$data[6]</td><td>$data[7]</td><td>$data[1]</td></tr>"); 
    } 
?>
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Displaying Members

Post by requinix »

It's CSS that determines the font size.
Fix that, not your code.
bmoyles0117
Forum Newbie
Posts: 22
Joined: Sun Nov 02, 2008 1:46 am

Re: Displaying Members

Post by bmoyles0117 »

Code: Select all

<?php
mysql_connect("***","****","***");//database connection
mysql_select_db("new");
                 
$order = "SELECT * FROM users ORDER BY UID";                     
$result = mysql_query($order);  
echo "<table style="font-size : 9px">";
while($data = mysql_fetch_row($result)){
      echo("<tr><td>$data[0]</td><td>$data[6]</td><td>$data[7]</td><td>$data[1]</td></tr>");
    }
echo "</table>";
?>
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Displaying Members

Post by onion2k »

That'll give you a parse error because the quotes aren't escaped.
bmoyles0117
Forum Newbie
Posts: 22
Joined: Sun Nov 02, 2008 1:46 am

Re: Displaying Members

Post by bmoyles0117 »

onion2k wrote:That'll give you a parse error because the quotes aren't escaped.
Ewww this is correct. That's why I shouldn't stay up so late especially when I'm trying to give advice haha.
Post Reply