if statement help in php

Soldato
Joined
7 Jan 2007
Posts
10,607
Location
Sussex, UK
I have the following as an if statement:

PHP:
if ($ThisWeeksResults != $LastWeeksResults) {
	print '$ThisWeeksResults';
	}
	else {
	print 'either the numbers are equal to each other or there isnt numerics in this weeks results';
	}

How do I make sure that the if statement checks that $ThisWeeksResults isn't equal to $LastWeeksResults AND that $ThisWeeksResults is_numeric?
 
Thanks mate! I am learnin' :)

IS this a good check though?

It suddenly came into my brain that I needed to check the data or I could have a right mess if it ever goes wrong... :p
 
Back
Top Bottom