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
Changing font of results only?
Old 02-04-2010, 07:16 PM Changing font of results only?
Skilled Talker

Posts: 65
Name: Tony Connelly
Location: Scotland
Trades: 0
Hi I have finally got my review submit form, mysql and php code for searching the database working.

Can anybody tell me if there is a way to change the font; size, colour, position, etc... of the retrieved results only?

For example I have the line:
echo "<br/><br/><b> Equipment: ".$row['Equipment'];

If I put:
echo "<br/><br/><b class=style4> Equipment: ".$row['Equipment'];
It changes the characteristics of my result title "Equipment:" AND the retrieved results from my database. How can I just change one or the other?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
connelly73 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-04-2010, 07:27 PM Re: Changing font of results only?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
put into a list, a table, spans etc etc and style each element.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-05-2010, 07:21 AM Re: Changing font of results only?
Average Talker

Posts: 16
Name: Filip Filipov
Location: Bulgaria
Trades: 0
You can use any replacement function (str_replace,eregi_replace,preg_replace,..).
primecode is offline
Reply With Quote
View Public Profile Visit primecode's homepage!
 
Old 02-05-2010, 11:48 AM Re: Changing font of results only?
Novice Talker

Posts: 14
Trades: 0
I apologize if I'm missing something here, but is there a reason you can't just do:

echo "<br/><br/><b class='style4'> Equipment: </b>" .$row['Equipment'];

Then only the 'Equipment' title would be styled with style4, enabling you to differentiate. Hope that helps.
Nick Parsons is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Changing font of results only?
 

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.13108 seconds with 12 queries