Skip to content

Instantly share code, notes, and snippets.

@alex-zige
Created March 7, 2012 00:52
Show Gist options
  • Save alex-zige/1990174 to your computer and use it in GitHub Desktop.
Save alex-zige/1990174 to your computer and use it in GitHub Desktop.
php:carcompany
if ($this->ReList == 1 && $this->PAltID==""){
// if the relist button been clicked at same time no PALT saved;
$this->AltID = (isset($this->vin))? substr($this->vin,-6).rand(100,999) : "Error";
$this->PAltID=$this->AltID;
}
elseif($this->ReList == 1 && $this->PAltID!="")
{
}else if ($this->ReList == 0 && $this->PAltID!="")
{
//when altID has been set
$this->AltID ="";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment