Add Record


prepare($sql); $stmt->execute(); } catch (PDOException $e) { if ($e->getCode() == 1062) { // Take some action if there is a key constraint violation, // i.e. duplicate name print $e->getMessage(); } else { echo "
Have a big problem
"; throw $e; } } if ($stmt->rowCount() > 0) { // Data received // Start Table $html_table = '
'; // Table Header $html_table .= ''; $html_table .= ''; $html_table .= ''; $html_table .= ''; $html_table .= '
SEQNAMEVERSIONCONFIGUREBUILDINSTALLNOTESURLEDIT
'; // Body $html_table .= '
'; // Table Rows while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $html_table .= ''; $html_table .= ''; $html_table .= ''; $html_table .= ''; $html_table .= ''; $html_table .= ''; $html_table .= ''; $html_table .= ''; $html_table .= ''; $html_table .= ""; $html_table .= ''; } // End Table $html_table .= '
'.$row['seq'].''.$row['name'].''.$row['version'].''.nl2br($row['configure']).''.nl2br($row['build']).''.nl2br($row['install']).''.nl2br($row['notes']).''.nl2br($row['url']).'Edit
'; } else { // No Data received echo "
Nothing!
"; } $html_table .= ''; echo $html_table; ?>

Valid HTML 4.01 Transitional