From 6c7a859fcf9691023c418366a62ece2f19cf4c9f Mon Sep 17 00:00:00 2001 From: William Harrington Date: Mon, 12 Mar 2018 15:51:42 -0500 Subject: Initial commit for project. --- list-scroll.php | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 list-scroll.php (limited to 'list-scroll.php') diff --git a/list-scroll.php b/list-scroll.php new file mode 100644 index 0000000..c69ed20 --- /dev/null +++ b/list-scroll.php @@ -0,0 +1,85 @@ + + + + + + + + + +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 +

+ + + -- cgit v1.2.3-54-g00ecf