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
icepirates
Forum Newbie
Posts: 6 Joined: Mon Aug 18, 2008 11:11 am
Post
by icepirates » Sun Nov 02, 2008 9:47 pm
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>");
}
?>
requinix
Spammer :|
Posts: 6617 Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA
Post
by requinix » Sun Nov 02, 2008 10:15 pm
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
Post
by bmoyles0117 » Mon Nov 03, 2008 12:15 am
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>";
?>
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Mon Nov 03, 2008 3:22 am
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
Post
by bmoyles0117 » Mon Nov 03, 2008 9:24 pm
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.