2008-12-11から1日間の記事一覧
PHPでの方法です。 $this->dbh = new PDO( 'mysql:dbname='.$this->dbName.';host='. $this->dbHost, $this->user, $this->pass ); $stmt = $this->dbh->exec(インサート文); $lastInsertId = $this->dbh->lastInsertId(); で$lastInsertId に直前に挿入した…
PHPでの方法です。 $this->dbh = new PDO( 'mysql:dbname='.$this->dbName.';host='. $this->dbHost, $this->user, $this->pass ); $stmt = $this->dbh->exec(インサート文); $lastInsertId = $this->dbh->lastInsertId(); で$lastInsertId に直前に挿入した…