Hi there people

Here we go, my program (in VB) executes a website address with variables in the url, these variables are the version numbers of my app, and i need to check to see if the current version is higher then the version from the users application

Here is what i have already

Code:
<?php
$usermajor = $_GET["major"];
$userminor = $_GET["minor"];
$userrevision = $_GET["revision"];

$major = "2";
$minor = "0";
$revision = "354";


if($usermajor<$major) {

         
		echo "Update Available: Build " . $major . "." . $minor . "." . $revision;
		echo "<br><br>";
		echo "NUMBER !";


}elseif($usermajor=$major && $userminor<$minor) {
         
		echo "Update Available: Build " . $major . "." . $minor . "." . $revision;
		echo "<br><br>";
		echo "Click here to update, no 2";


}elseif($usermajor=$major && $userminor=$minor && $userrevision<$revision) {

         
		echo "Update Available: Build " . $major . "." . $minor . "." . $revision;
		echo "<br><br>";
		echo "Click here to update no 3";
}else {
		echo "No updates";}




?>
If major is higher the usermajor then it updates regardless
If major is the same but minor is higher then update
if major and minor are the same as their counterparts, and revision is higher then update

But it doesnt seem to work?

Can any one assist?>

Thanks, ILMV