diff --git a/config.php b/config.php new file mode 100644 index 0000000..97c3df7 --- /dev/null +++ b/config.php @@ -0,0 +1,12 @@ +Not able to establish connection"; + } +?> \ No newline at end of file diff --git a/create.php b/create.php index 8ed2662..eb1563a 100644 --- a/create.php +++ b/create.php @@ -1,34 +1,11 @@ - - - - - - - - - Document - - - - - - - - +
-
+ - + - - + +
- - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/db/blog_data_phpv1.sql b/db/blog_data_phpv1.sql new file mode 100644 index 0000000..89a487d --- /dev/null +++ b/db/blog_data_phpv1.sql @@ -0,0 +1,71 @@ +-- phpMyAdmin SQL Dump +-- version 5.1.0 +-- https://www.phpmyadmin.net/ +-- +-- Host: 127.0.0.1 +-- Generation Time: Oct 13, 2021 at 05:11 PM +-- Server version: 10.4.18-MariaDB +-- PHP Version: 7.4.16 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `blog_data_phpv1` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `blogs` +-- + +CREATE TABLE `blogs` ( + `id` int(11) NOT NULL, + `blog_title` text NOT NULL, + `blog_content` text NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- +-- Dumping data for table `blogs` +-- + +INSERT INTO `blogs` (`id`, `blog_title`, `blog_content`) VALUES +(1, 'Ut explicabo Fugiat', 'Ut laboriosam in in'), +(2, 'Ut quos tempora in a', 'Mollitia voluptas ei'), +(3, 'Id esse explicabo ', 'Sunt doloremque non'), +(4, 'fdsfdsf', 'sdfsdfsdfsfsdff'), +(5, 'Aut irure ipsum ven', 'Voluptatem beatae am'), +(6, 'Laboriosam doloribu', 'Et sed cum odio inci'); + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `blogs` +-- +ALTER TABLE `blogs` + ADD PRIMARY KEY (`id`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `blogs` +-- +ALTER TABLE `blogs` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/inc/footer.php b/inc/footer.php new file mode 100644 index 0000000..8e79a84 --- /dev/null +++ b/inc/footer.php @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/inc/header.php b/inc/header.php new file mode 100644 index 0000000..d02c932 --- /dev/null +++ b/inc/header.php @@ -0,0 +1,16 @@ + + + + + + + + Document + + + + + + + + \ No newline at end of file diff --git a/index.php b/index.php index fe93009..f8a145a 100644 --- a/index.php +++ b/index.php @@ -1,29 +1,17 @@ - - - - - - - - - Blog using php and mysql - - - - - - +
+ + +
+ create a new post
- - - - - - \ No newline at end of file + \ No newline at end of file diff --git a/logic.php b/logic.php index 734011e..b2e0ac6 100644 --- a/logic.php +++ b/logic.php @@ -1,7 +1,22 @@ -Not able to establish connection"; + \ No newline at end of file + +?>