Search found 22 matches

HTML - Title & Paragraph

Are you writing a page in HTML and need to add a title and paragraph to it? It seems like a simple request but if you're totally new to HTML, we thought we'd share the best way to format it. This code will give you exactly what you're after: <!DOCTYPE html> <html> <head> <title>Page Title</title> </...

Format today's date in several ways

Do you want to display today's date in your code? Easy enough, right! Well what if you wanted to format today's date in a different way? Use the following code to do that! <!DOCTYPE html> <html> <body> <?php echo "Today is " . date("Y/m/d") . "<br>"; echo "Today is " . date("Y.m.d") . "<br>"; echo "...

PHP Switch Statement

The switch statement is used to perform different actions based on different conditions. <!DOCTYPE html> <html> <body> <?php $favanimal = "dog"; switch ($favanimal) { case "dog": echo "Your favourite animal is a dog!"; break; case "cat": echo "Your favourite animal is a cat!"; break; case "monkey": ...

Add comments in PHP

A comment in PHP code is a line that is not executed/read as part of the program. Comments are ideal so that others know what the code is doing or can even be a reminder for yourself to explain what the code is doing. We think that comments are good in any code as they make your code readable to any...

Accessing your control panel!

When you have an account with Code Flavour, you get access to a suite of features. You can subscribe to topics, bookmark them, connect with other members and more. To access these features and more, you'll need to visit your user control panel. You'll see a link for this in the menu when signed in. ...

Spread the word about Code Flavour!

Hi Everyone As you'll know we've just launched therefore we really need to spread the world about our website. Can you please tell friends about us and encourage them to sign up? It would really help us create an awesome community and allow for more ideas to be collated. Collaboration is one of our ...

Re: What is SAS?

Feel free to ask questions here, or contact us directly. We'd rather questions came through our forums though so that other users can also learn from your query.

Go to advanced search

cron