Welcome Guest [Log In] [Register]
Welcome to New Nsider. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
  • Pages:
  • 1
  • 3
PHP - Lesson 1; Introduction to PHP
Topic Started: Jul 15 2006, 02:57 PM (737 Views)
Zero the Warrior
Member Avatar
The True Warrior
Ok so a comment. I'll put that here in a minute.
Posted Image
<a href="http://photobucket.com/" target="_blank"><img src="http://i22.photobucket.com/albums/b345/MetroidMan000/Kakashi.jpg" border="0" alt="Photobucket - Video and Image Hosting"></a>
Offline Profile Quote Post Goto Top
 
{NJ} ALBA7R055
Member Avatar
<.< *Sigh last one was a little to long ._________.
Code:
 
<?php
echo"/"Hi....I'm NJ"/";
<?


Code:
 
<html>
<head>
<title>Phantom Smells</title>
</head>
<body>
<?php
echo"/" Phantom does smell....really bad..."/"
<?
</body>
</html>


This? Meh...I'm not so good with this...and I'm not completley sure what it does...
Musou Tentie's appoximate appearence.
Posted Image

Offline Profile Quote Post Goto Top
 
Cube
Member Avatar
White Pikmin
{NJ} ALBA7R055
Jul 19 2006, 02:46 PM
Code:
 
<?php
echo"/"Hi....I'm NJ"/";
<?


Code:
 
<html>
<head>
<title>Phantom Smells</title>
</head>
<body>
<?php
echo"/" Phantom does smell....really bad..."/"
<?
</body>
</html>


This? Meh...I'm not so good with this...and I'm not completley sure what it does...

Nesting...

The quotes, ""text here"".

Notice, the first quote and the last quote, they are not displayed in the text, but you want the two inner quotes to be displayed in the text. By adding a backslash (\) not forward slash would you do this. While it's tricky to understand at first, it gets much easier as you continue to learn it. >_>

Oh, and add a PHP comment.
Posted Image
Offline Profile Quote Post Goto Top
 
{NJ} ALBA7R055
Member Avatar
<.< *Sigh last one was a little to long ._________.
{NJ} ALBA7R055
Jul 19 2006, 01:46 PM
Code:
 
<?php
echo"\"Hi....I'm NJ"\";
<?


Code:
 
<html>
<head>
<title>Phantom Smells</title>
</head>
<body>
<?php
echo"\" Phantom does smell....really bad..."\"
<?
</body>
</html>


This? Meh...I'm not so good with this...and I'm not completley sure what it does...

That Better?
Musou Tentie's appoximate appearence.
Posted Image

Offline Profile Quote Post Goto Top
 
Zero the Warrior
Member Avatar
The True Warrior
//This is a php comment right?

Code:
 

<?php
$title = "MSN.";
?>
<html>
<head>
<title><?php echo $title;?></title>
</head>
<body>
<?php
print('MSN!'); //MSN has fun games.
?>
</body>
</html>
Posted Image
<a href="http://photobucket.com/" target="_blank"><img src="http://i22.photobucket.com/albums/b345/MetroidMan000/Kakashi.jpg" border="0" alt="Photobucket - Video and Image Hosting"></a>
Offline Profile Quote Post Goto Top
 
Cube
Member Avatar
White Pikmin
@Zero the Warrior: Completed, and perfect. Even more than I said to do (refering to the variable).

@Nj: Still didn't backslash the right one. >_>

"\"text here"\"

Would be like this if the quotes were supposed to be <b> tags...

<b>text here</b> (notice how the final </b> tag is not bold)

You want to backslash the quote before the final quote. And you forgot the line terminator (as I call it), semi-colon.
Posted Image
Offline Profile Quote Post Goto Top
 
Zero the Warrior
Member Avatar
The True Warrior
BTW I know absoulutly nothing about HMTL. Just to let you know.
Posted Image
<a href="http://photobucket.com/" target="_blank"><img src="http://i22.photobucket.com/albums/b345/MetroidMan000/Kakashi.jpg" border="0" alt="Photobucket - Video and Image Hosting"></a>
Offline Profile Quote Post Goto Top
 
Cube
Member Avatar
White Pikmin
Well, just know this then...

<html>

</html>

Creates and ends an HTML document.

<head>

</head>

Creates and ends the header of the document, such as title.

<title>text here</title>

Creates the page title.

<body>

</body>

Creates the page, where all the text and images go.
Posted Image
Offline Profile Quote Post Goto Top
 
Zero the Warrior
Member Avatar
The True Warrior
Thanks. Off to leason two.
Posted Image
<a href="http://photobucket.com/" target="_blank"><img src="http://i22.photobucket.com/albums/b345/MetroidMan000/Kakashi.jpg" border="0" alt="Photobucket - Video and Image Hosting"></a>
Offline Profile Quote Post Goto Top
 
SpeedyZ1
Member Avatar
White Pikmin
Code:
 
<?php
$title = "Ask Jeeves.";
?>
<html>
<head>
<title><?php echo $title;?></title>
</head>
<body>
<?php
print('Ask!'); //Ask can be helpful.
?>
</body>
</html>


I'm guessing this would be my PHP Comment, right?
Offline Profile Quote Post Goto Top
 
Go to Next Page
« Previous Topic · Archive · Next Topic »
Add Reply
  • Pages:
  • 1
  • 3

Theme created by tiptopolive. Find more great themes and skins at the ZB Theme Zone.