Page 1 of 1

Displaying Members

Posted: Sun Nov 02, 2008 9:47 pm
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>"); 
    } 
?>

Re: Displaying Members

Posted: Sun Nov 02, 2008 10:15 pm
by requinix
It's CSS that determines the font size.
Fix that, not your code.

Re: Displaying Members

Posted: Mon Nov 03, 2008 12:15 am
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>";
?>

Re: Displaying Members

Posted: Mon Nov 03, 2008 3:22 am
by onion2k
That'll give you a parse error because the quotes aren't escaped.

Re: Displaying Members

Posted: Mon Nov 03, 2008 9:24 pm
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.