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
  • 2
  • 4
PHP - Lesson 1; Introduction to PHP
Topic Started: Jul 15 2006, 02:57 PM (738 Views)
SpeedyZ1
Member Avatar
White Pikmin
Code:
 
<?php
echo "\"Party!/"";
?>


You use the echo statement to output data.


Offline Profile Quote Post Goto Top
 
Cube
Member Avatar
White Pikmin
Speedy
Jul 16 2006, 04:30 PM
Code:
 
<?php
echo "\"Party!/"";
?>

You use the echo statement to output data.


I have a feeling I have this wrong, but here it is. Please correct me if I'm wrong.

You came rather close, but made the same mistake Phantom made at first. I want the comment (You use the echo statement to output data.) inside the php code. ;)

As well, your echo statement is almost correct, but the forward slash in it should be changed to a backslash, as only a backslash is used to escape characters.
Posted Image
Offline Profile Quote Post Goto Top
 
SpeedyZ1
Member Avatar
White Pikmin
Code:
 

<?php
echo "\"You use the echo statement to output data.\"";
?>


Hopefully I got it right this time. XD Well off to lesson two.


Offline Profile Quote Post Goto Top
 
Cube
Member Avatar
White Pikmin
Speedy
Jul 16 2006, 09:48 PM
Code:
 

<?php
echo "\"You use the echo statement to output data.\"";
?>


Hopefully I got it right this time. XD Well off to lesson two.

Ah man...no PHP comment? >_>

Other than that, it's all correct.
Posted Image
Offline Profile Quote Post Goto Top
 
Zero the Warrior
Member Avatar
The True Warrior
I'm trying to understand this. My only question is is this lesson still open?
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
Jul 19 2006, 12:16 PM
I'm trying to understand this. My only question is is this lesson still open?

Always open, it won't be closed anytime soon.
Posted Image
Offline Profile Quote Post Goto Top
 
Zero the Warrior
Member Avatar
The True Warrior
Cool. I think I got most of it but i'm not completely sure.
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
Jul 19 2006, 12:26 PM
Cool. I think I got most of it but i'm not completely sure.

That's what the assignments are for, post them, anything you get wrong, I'll explain better.
Posted Image
Offline Profile Quote Post Goto Top
 
Zero the Warrior
Member Avatar
The True Warrior
Code:
 

<?php
echo "\"The echo statement is used to output data.\"";
?>


I think I got this right but i'm not too sure. Uh I still need to learn how to put the code in the box. Sad huh.

Cube's edit: adding the [/code] end tag.
Thanks. And I added the semi colon. bbl.
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
Not bad, now, as everyone has been doing though, there are no comments...

edit: WAIT! You forgot the semi-colon line terminator!

I want to see a PHP comment as well, but I'll let it go since it's not overly important.
Posted Image
Offline Profile Quote Post Goto Top
 
Go to Next Page
« Previous Topic · Archive · Next Topic »
Add Reply
  • Pages:
  • 1
  • 2
  • 4

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