Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 09-23-2007, 09:07 AM Wierd gaps in HTML
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
A PHP loop I'm using generates a table, but in the first cell the HTML has huge gaps in it!

Code:
<td>
        6' 2"        </td>
Here is the loop Im using
PHP Code:
        $sql=mysql_query("SELECT * FROM profile WHERE name ='$model'");
        while(
$row=mysql_fetch_array($sql))
                {
                    echo 
$row['heightft']."' ";
                    echo 
$row['heightin'].'"';
                } 
can anyone see the problem??
Thanks.
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 09-23-2007, 10:52 AM Re: Wierd gaps in HTML
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Well, what is in the MySQL database? Are there excess spaces in there?
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 09-23-2007, 10:58 AM Re: Wierd gaps in HTML
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
What's the rest of the php code?
joder is offline
Reply With Quote
View Public Profile
 
Old 09-23-2007, 12:32 PM Re: Wierd gaps in HTML
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
It looks to me like tab / white space. Use PHP to trip out the white space.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 09-23-2007, 03:46 PM Re: Wierd gaps in HTML
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
There is php code in between the height and width variables. I'm thinking that is where the extra space is coming from.
joder is offline
Reply With Quote
View Public Profile
 
Old 09-24-2007, 10:20 AM Re: Wierd gaps in HTML
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Quote:
Originally Posted by rogem002 View Post
It looks to me like tab / white space. Use PHP to trip out the white space.
I seeeee! How would I do that?
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 09-24-2007, 06:08 PM Re: Wierd gaps in HTML
feraira's Avatar
BeTheBand!

Posts: 350
Trades: 0
http://uk3.php.net/trim
feraira is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Wierd gaps in HTML
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47878 seconds with 12 queries