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 2; Basics of PHP
Topic Started: Jul 15 2006, 10:20 PM (579 Views)
Cube
Member Avatar
White Pikmin
Yeah.

Except you just commented text within a parse error. >_>

{//text}

That would cause an error. Try this...

if(logical expression goes here) {
//code to execute here
}

We'll go over loops next lesson.
Posted Image
Offline Profile Quote Post Goto Top
 
Zero the Warrior
Member Avatar
The True Warrior
Oh I see now.
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
 
Zero the Warrior
Member Avatar
The True Warrior
Code:
 

<?php
$y++;
?>

I think this is what you want for the last part as well. And sorry for all the double posts.
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
That will not be incremented, you commented it out with the slashes (//). Erase the slashes and the 1, ++ already adds one.

A grade.
Posted Image
Offline Profile Quote Post Goto Top
 
Zero the Warrior
Member Avatar
The True Warrior
Fixed it. I'm starting to see my mistakes better. After looking a little closer at the info you put then what I put heh heh.
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
Good, the best thing to learn is finding mistakes, one mistake such as missing a quote, can lead to it failing.
Posted Image
Offline Profile Quote Post Goto Top
 
Zero the Warrior
Member Avatar
The True Warrior
Yeah. Just like when I was learning HTML last night through the website you gave. It lets you try it out with the examples and see what you can do with it.
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
 
« 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.