• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

PHP Paxton's Web Development School Part: 1

laol i didn't follow the tutorial i just copied that from zonet and made it go with else to show him x) i already know php ;)
 
I loved it mate! Thanks.

Homework:
Assigment 1
Code:
<?php 
$mytext = "Hello Mikuch";
echo $mytext;
?>

Assignment 2

Code:
<?php
//declare number 3
$numbera = 3;
//declare number 2
$numberb = 2;
//declare total
$numbertotal = $numbera + $numberb;

if ($numbertotal == 7)
{
echo "Doesn't work!";
}
else
{
echo "I learned something!";
}
?>
 
Last edited:
I loved it mate! Thanks.

Homework:
Assigment 1
Code:
<?php 
$mytext = "Hello Mikuch";
echo $mytext;
?>

Assignment 2

Code:
<?php
//declare number 3
$numbera = 3;
//declare number 2
$numberb = 2;
//declare total
$numbertotal = $numbera + $numberb;

if ($numbertotal == 7)
{
echo "Doesn't work!";
}
else
{
echo "I learned something!";
}
?>

Well done :) But code it in PHP tags not in CODE.

Code:

PHP:

Nikkster, yes you passed, but before sending the homework try to check if it works on your localhost :)
 
asajnment 1;;;
PHP:
$name = "paxton";
echo $name;
asajnment 2;;;
PHP:
$val = 5;
echo($val == 7 ? "dasnet wark :mad:" : "ejj i not lerned anytink!!!");

AM pased TeST??
 
PHP:
<?
	$name = "pls pwn";
	echo $name;
?>
<br />
<?
	$numbers = array(1, 4);
	
	if($numbers[0] + $numbers[1] != 7):
		echo "OMG PHP I GOD IN :):)";
	else:
		echo "FFFFFFFFFFUUUUUUUUUUUUUU";
	endif;
?>

PLEASE PASS :)))))))))) ???????????? :DDDDDDd
 
PHP:
   <?php

//Declaring variable which is 3
$a = 3;
//Declaring variable which is 2
$b = 2;
//Adding them up
$sum = $a+$b;
//Displaying
echo $sum;


if($sum == 5)
{
echo "i actually learned";
}
else if($sum == 11)
{
echo "i didnt lol";
}
else
{
echo "im retarded.";
}  

?>

hohoho! grade plox !

and im going to rep you.
 
nice such tuts tho to be honest you made a statement: - It's not so hard, and it gives a lot of pleasure after finishing task.

well it gives alot of pleasure for sure :), but it can be quite hard it just depends on what you want to create. beside that there are alot of languages you have to master in order to create great stuff. for example

html
css
xml
javascript
php

well there are a few more wich you could master like
CGI
Perl
and
ASP

still i do this already more then 10 years working with
html/php/javascript etc and still i haven't masterd everything still have to lookup alot etc. so it aint that easy well the basic aint that hard to understand.
 
It's true, but in my career I've never used those languages that u mentioned in second :)
 
First

PHP:
<?php
$a = "Paxton!";
// How to make spaces before variable in the text below?
echo "Who is the best php teacher?$a";
?>

Second ;p

PHP:
<?php
$a = 5;
if($a == 7)
{
echo"Doesnt work";
}
else if($a != 7)
{
echo "I learned sthing";
}
?>
 
And you dont need to open brackets {} if its just one line, you can do it like this:

PHP:
<?php
$a = 5;
	if($a != 5)
		echo"Doesnt work";
	else
		echo "I learned sthing";
?>

I didnt used brackets :D
 
And you dont need to open brackets {} if its just one line, you can do it like this:

PHP:
<?php
$a = 5;
	if($a != 5)
		echo"Doesnt work";
	else
		echo "I learned sthing";
?>

I didnt used brackets :D

You dont have to use brackets anyways.
if(): endif;
 
I really want to learn PHP. :rolleyes:

PHP:
<?php

$name = "Paxton";
echo $name;

?>

PHP:
<?php

//Config
$pwn = 5;
echo $pwn;

//Content
if ($pwn == 7)
{
echo "<br>";
echo "It doesn't work!";
}
else if($pwn != 7)
{
echo "<br>";
echo "I learned something.";
}

?>
 
Back
Top