4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Adding values from $row[whatever] function
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Triumph Of Steel
Junior WebHelper
Junior WebHelper


Joined: 14 Feb 2002
Posts: 10
Location: Italy

PostPosted: Fri Feb 15, 2002 10:40 am (15 years, 10 months ago) Reply with QuoteBack to Top

Don't tested.. try it:

echo ".$row[fulltimehome] - $row[fulltimeaway]."

or with "( )"

________________________________
==================
~ The Triumph Of Steel ~
==================
OfflineView User's ProfileFind all posts by Triumph Of SteelSend Personal MessageVisit Poster's WebsiteMSN MessengerICQ Number
zodiak
Junior WebHelper
Junior WebHelper


Joined: 15 Feb 2002
Posts: 2
Location: Portugal

PostPosted: Sat Feb 16, 2002 8:10 am (15 years, 10 months ago) Reply with QuoteBack to Top

Quote:
or with "( )"

yes, Triumph Of Steel is right. This should work:
Code:
echo "<font face=\"$fontf\" size=\"$fonts\">".($row[fulltimehome]-$row[fulltimeaway])."</font>";


Rui Alves
[php-db.com]
OfflineView User's ProfileFind all posts by zodiakSend Personal MessageVisit Poster's Website
szo2
Junior WebHelper
Junior WebHelper


Joined: 10 Jan 2002
Posts: 18
Location: Hong Kong

PostPosted: Sat Mar 02, 2002 5:39 pm (15 years, 9 months ago) Reply with QuoteBack to Top

Yeah, you used a literal "-" string...

Also as a reminder, $row[fulltimehome] is not exactly correct.
OfflineView User's ProfileFind all posts by szo2Send Personal MessageSend email
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.054334 seconds :: 21 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme