What do you want to start with?
Basics:
Start code with <?php and end with ?>.
End a line or function with ;
ECHO is to print text and variables to screen example:
PHP Code:
<?php
echo "My name is " . $variable . ".";
?>
A variable start with $ sign, example:
PHP Code:
<?php
$variable = 'rossco';
?>
A conditional (if) makes code between curly brackets ({ }) only run if a condition is meant, example:
PHP Code:
<?php
if ($variable=='rossco')
{
echo "Variable is rossco";
}
else
{
echo "Variable is not rossco";
}?>
That is a few basics to get you started, or you can tell me what you want and I will start it for you.
Bookmarks