1 2 3 4 5 6 7 8 9 10 11 12 13 14
| function insertClient($Email, $Password, $FirstName, $LastName, $Address, $City, $State, $Country, $Zip, $Phone,
$SFirstName, $SLastName, $SAddress, $SCity, $SState, $SCountry, $SZip, $SPhone, $Credit_Card,
$Credit_Number, $cvs, $Month, $Year)
{
//Build Date
$Month =($Month<9)?"0".$Month:$Month;
$date = $Year."-".$Month."-00";
//Insert query
$result = mysql_query("Insert into Clients values('', '".$Email."', '".$Password."', '".$FirstName."', '".$LastName."', '".$Address."', '".$City."', '".
$State."', '".$Country."', '".$Zip."', '".$Phone."', '".$SFirstName."', '".$SLastName."', '".$SAddress."', '".$SCity."', '".$SState."', '".$SCountry."', '".$SZip."', '".$SPhone.
"', '".$Credit_Card."', '".$Credit_Number."', '".$cvs."', '".$date."')");
if($result) return mysql_insert_id($this->conn);
else return "error";
} |
Partager