From e1bac6594af6512d309a8c011df9e51e2c3c7093 Mon Sep 17 00:00:00 2001 From: Playmaker1210 Date: Tue, 7 Jun 2022 18:31:44 +0200 Subject: [PATCH] fix --- kepregeny/index.php | 6 +++--- kepregeny/kapcsolat.php | 5 ++--- kepregeny/script.js | 0 kepregeny/style.css | 3 ++- 4 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 kepregeny/script.js diff --git a/kepregeny/index.php b/kepregeny/index.php index 11a3690..a7bc213 100644 --- a/kepregeny/index.php +++ b/kepregeny/index.php @@ -8,7 +8,7 @@ if(isset($_POST['passed'])){ $tabla = $kapcsolat->readAll($kapcsolat->getDBC(), "comics"); - print_r($tabla); + //print_r($tabla); } @@ -23,7 +23,7 @@ $adatok[$key] = $value; } } - print_r($adatok); + //print_r($adatok); $kapcsolat->insert($kapcsolat->getDBC(), 'comics', $adatok); } } catch (Exception) { @@ -142,7 +142,7 @@
- +
diff --git a/kepregeny/kapcsolat.php b/kepregeny/kapcsolat.php index 2c45ff6..3c97c88 100644 --- a/kepregeny/kapcsolat.php +++ b/kepregeny/kapcsolat.php @@ -7,7 +7,7 @@ class Kapcsolat{ private $password = ''; private $dbname = 'kepregeny'; private $dbc; - //konstruktor + public function __construct(){ try { $datasourcename = "mysql:host=$this->host;dbname=$this->dbname"; @@ -23,8 +23,7 @@ class Kapcsolat{ public function getDBC(){ return $this->dbc; } - - + public function readAll($dbc, $table) { $sql = "SELECT * FROM $table;"; $utasitas = $dbc->prepare($sql); diff --git a/kepregeny/script.js b/kepregeny/script.js deleted file mode 100644 index e69de29..0000000 diff --git a/kepregeny/style.css b/kepregeny/style.css index a190932..29e4cd4 100644 --- a/kepregeny/style.css +++ b/kepregeny/style.css @@ -32,6 +32,7 @@ table, th, td{ button, .gomb{ border-radius: 5px; width: 6%; + padding-right: 6%; } .cim{ @@ -56,4 +57,4 @@ button, .gomb{ .sor{ margin-bottom: 1.5%; -} \ No newline at end of file +}