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.

Website Design Forum


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



Freelance Jobs

Reply
Im a biginner of PHP..
Old 02-24-2006, 06:14 PM Im a biginner of PHP..
Junior Talker

Posts: 8
Trades: 0
Hello,

Im a beginner of PHP.. I would like to know how to simply make thigns bold, underline.. or make a link or images.. and is it similar to HTML coding??


-jpui-
__________________
--------------------------

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

Please login or register to view this content. Registration is FREE
jpui is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-24-2006, 07:32 PM RE: Im a biginner of PHP..
Junior Talker

Posts: 185
Trades: 0
HTML can be used in a php file.

if displaying some text in the middle of a script, for example displaying that text only if $string is equal to 123:
PHP Code:
<?php
if ($string == 123){
echo 
"<b>the variable string is set to 123</b>";
}
?>
or, you can do this to display the text regardless of what a variable is:
PHP Code:
<html><body>
<b>here's some text that always displays.</b>
<?php
//put your php code here
?>
</body></html>
PureEvil is offline
Reply With Quote
View Public Profile Visit PureEvil's homepage!
 
Old 02-25-2006, 02:04 AM RE: Im a biginner of PHP..
RedMatrix's Avatar
Novice Talker

Latest Blog Post:
What is to come?
Posts: 6
Name: David
Trades: 0
That's very interesting.

so a .PHP file can have HTML? and the php can 'write' out html code on the fly!
RedMatrix is offline
Reply With Quote
View Public Profile
 
Old 02-28-2006, 09:22 PM RE: Im a biginner of PHP..
Junior Talker

Posts: 20
Trades: 0
Basically yes, the server parses php to html when it processes it. So you can imbed html within php pages - so all your formatting should be done with html.
Tim356 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Im a biginner of PHP..
 

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