Click here to Skip to main content
15,921,716 members

Comments by Kumar Raj 2021 (Top 1 by date)

Kumar Raj 2021 18-Jan-22 0:00am View    
Deleted
its a call to class:
conn = new PDO($this->dsn, $this->username, $this->pass);
// echo "Succesfully Conected!";
} catch (PDOException $e) {
echo $e->getMessage();
}
}

public function insert($odate, $oclient, $ocode, $oname, $otype, $oamount)
{
$sql = "INSERT INTO tbl_order (odate, oclient, ocode, oname, otype, oamount) VALUES (:amodate,:amoclient,:amoprojectcodes,:amoprojectname,:amotype,:amoamount)";
$stmt = $this->conn->prepare($sql);
$stmt->execute(['amodate' => $odate, 'amoclient' => $oclient, 'amoprojectcodes' => $ocode, 'amoprojectname' => $oname, 'amotype' => $otype, 'amoamount' => $oamount]);
return true;
}
?>