Felix Riesterer: Platzhalter in MySQL Funktionen

Beitrag lesen

Lieber pl,

$sth = $pdo->prepare(
  "select 1721060 + to_days(':year-:month-:day') as jd"
);

$sth->execute(array(
  ':day' => $d,
  ':month' => $m,
  ':year' => $y
));

Liebe Grüße

Felix Riesterer