diff --git a/forstudents.php b/forstudents.php new file mode 100644 index 0000000..773be07 --- /dev/null +++ b/forstudents.php @@ -0,0 +1,44 @@ + + + +"; + + +if (mysqli_num_rows($result) > 0) + { + // output data of each row + while($row = mysqli_fetch_assoc($result)) + { + echo ""; + echo " " . $row["fid"]. " " . $row["fname"]. " " . $row["fdescription"]. ""; + echo " ";?> + + + \ No newline at end of file diff --git a/sql/nsbmedge.sql b/sql/nsbmedge.sql new file mode 100644 index 0000000..1c6b3be --- /dev/null +++ b/sql/nsbmedge.sql @@ -0,0 +1,90 @@ +-- phpMyAdmin SQL Dump +-- version 4.9.0.1 +-- https://www.phpmyadmin.net/ +-- +-- Host: 127.0.0.1 +-- Generation Time: Dec 24, 2019 at 02:30 PM +-- Server version: 10.3.16-MariaDB +-- PHP Version: 7.3.7 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET AUTOCOMMIT = 0; +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: `nsbmedge` +-- +CREATE DATABASE IF NOT EXISTS `nsbmedge` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; +USE `nsbmedge`; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `foods` +-- + +DROP TABLE IF EXISTS `foods`; +CREATE TABLE `foods` ( + `fid` int(4) NOT NULL, + `fname` text NOT NULL, + `fdescription` text NOT NULL, + `fimage` longblob NOT NULL, + `favailability` int(4) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `login` +-- + +DROP TABLE IF EXISTS `login`; +CREATE TABLE `login` ( + `userid` int(11) NOT NULL, + `username` varchar(100) NOT NULL, + `password` varchar(100) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +-- +-- Indexes for dumped tables +-- + +-- +-- Indexes for table `foods` +-- +ALTER TABLE `foods` + ADD PRIMARY KEY (`fid`); + +-- +-- Indexes for table `login` +-- +ALTER TABLE `login` + ADD PRIMARY KEY (`userid`); + +-- +-- AUTO_INCREMENT for dumped tables +-- + +-- +-- AUTO_INCREMENT for table `foods` +-- +ALTER TABLE `foods` + MODIFY `fid` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; + +-- +-- AUTO_INCREMENT for table `login` +-- +ALTER TABLE `login` + MODIFY `userid` int(11) NOT NULL AUTO_INCREMENT; +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/upload.php b/upload.php new file mode 100644 index 0000000..c940b08 --- /dev/null +++ b/upload.php @@ -0,0 +1,88 @@ + + + + + + + +
+name +
+description +
+photo +
+availability +
+ + + +
+ + \ No newline at end of file diff --git a/uploads/legal-sea-foods-logan.jpg b/uploads/legal-sea-foods-logan.jpg new file mode 100644 index 0000000..a448866 Binary files /dev/null and b/uploads/legal-sea-foods-logan.jpg differ diff --git a/uploads/triple-chocolate-cake-4.jpg b/uploads/triple-chocolate-cake-4.jpg new file mode 100644 index 0000000..9b0fcd6 Binary files /dev/null and b/uploads/triple-chocolate-cake-4.jpg differ