|
#1
|
|||
|
|||
[mod] snapshot
ADD TO PHPMYADMIN
Code:
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 28, 2017 at 12:56 PM -- Server version: 5.6.14 -- PHP Version: 5.5.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 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 utf8 */; -- -- Database: `webcam` -- -- -------------------------------------------------------- -- -- Table structure for table `snapshot` -- CREATE TABLE IF NOT EXISTS `snapshot` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Image` varchar(20000) NOT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; /*!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 */; Code:
<?php class connectionClass extends mysqli{ public $host="localhost",$dbname="webcam",$dbpass="",$dbuser="root"; public $con; public function __construct() { if($this->connect($this->host, $this->dbuser, $this->dbpass, $this->dbname)){} else { return "<h1>Error while connecting database</h1>"; } } } 2, FTP /var/www/html/ 3, edit dbfile.php and index 4, run app on default tbdev if want!! 4, should now work!! Last edited by BamBam0077; 6th September 2022 at 13:44. Reason: credits - https://github.com/VivekMoyal28/webcam-in-php-html5 |
|
|