'; //var_dump($_SESSION); ?>
Add Record
beginTransaction(); $stmt = $pdo->prepare($sqlpkg); $stmt->execute(['seq' => $seq, 'name' => $name, 'version' => $version]); $pkgid = $pdo->lastInsertId(); //echo "PKGID: '$pkgid' '$seq' '$name' '$version'"; $stmt = $pdo->prepare($sqlcfg); $stmt->execute(['pkg_id' => $pkgid, 'configure' => $configure]); $stmt = $pdo->prepare($sqlbld); $stmt->execute(['pkg_id' => $pkgid, 'build' => $build]); $stmt = $pdo->prepare($sqlnst); $stmt->execute(['pkg_id' => $pkgid, 'install' => $install]); $stmt = $pdo->prepare($sqlset); $stmt->execute(['pkg_id' => $pkgid, 'setup' => $setup]); $stmt = $pdo->prepare($sqlnot); $stmt->execute(['pkg_id' => $pkgid, 'notes' => $notes]); $stmt = $pdo->prepare($sqlurl); $stmt->execute(['pkg_id' => $pkgid, 'url' => $url]); $pdo->commit(); } catch(Exception $e) { $pdo->rollBack(); throw $e; } header("location:list.php#$seq"); } else { echo '
'; echo 'Need at least the following attributes: Sequence, Name'; echo '
'; } } ?>
Sequence:
Name:
Version:
Configure:
Build:
Install:
Setup:
Notes:
Url: