Posts Tagged ‘php’

PHP: Hypertext Preprocessor - Basics

Friday, September 14th, 2007

Some useful snippits of PHP code.

Include - Include a external document within the PHP file.
<?php include 'filename.type' ?>
Variables - Set and recall a variable.
<?php
$varname = "Variable contents";
echo $varname;
?>

If statement - checking for a null property.
<?php
if ($pagetitle == NULL)
{ echo "Generic Title";
}else{ echo $pagetitle; }
?>

Date\Time - codes.
<?php echo date('F j, Y'); ?>

CameaWorld - Your first choice for cameras

Monday, November 27th, 2006

Camera world now has a semi-fully-functioning search form!

Camera world is my third assignment for Web Application Development, and is going very badly.

Users can now search for a camera dependent on Make and Type. There is a slight problem with the validation of price. Rather than the whole number in the box being validated for “max is-more-than min”

Anyhoo, Back to work.

Keithout

What is it with PHP and not working?

Friday, November 17th, 2006

I’m getting a growing dislike for anything which involves PHP to work properly and so far all I have to show for it is this. One thing I do like is that PHP has more than a passing resemblance to JAVA, which I do know as a language. One problem is how to get the mySQL database results to appear nice and prettily in my results page. I will be working on that over the weekend, non stop fun for me!

If you are intrigued by the coursework of a Computing with Geography student why not log on to the University of Ulster section of KG Internet.

Keithout