A curated list of FREE design & UI resources for developers including stock photos, templates, frameworks, UI Kits, online tools and much much more.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$connect = mysqli_connect("localhost", "root", "", "auto_refresh"); | |
if(isset($_POST["submit"])) | |
{ | |
if(!empty($_POST["search"])) | |
{ | |
$query = str_replace(" ", "+", $_POST["search"]); | |
header("location:index.php?search=" . $query); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function boot() | |
{ | |
if(env('APP_ENV') == 'production') { | |
\URL::forceScheme('https'); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="dns-prefetch" href="//fonts.gstatic.com"> | |
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> | |
<script defer src="{{secure_asset('js/all.js')}}" crossorigin="anonymous"></script> | |
<!-- Styles --> | |
<link href="{{secure_asset('css/app.css')}}" rel="Stylesheet"> | |
<link rel="stylesheet" href="{{secure_asset('css/intlTelInput.css')}}"> | |
<link href="{{secure_asset('css/select2.min.css')}}" rel="stylesheet" /> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TrustProxies extends Middleware | |
{ | |
/** | |
* The trusted proxies for this application. | |
* | |
* @var array|string | |
*/ | |
protected $proxies = '*'; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Table structure for table `tbl_blog` | |
-- | |
CREATE TABLE IF NOT EXISTS `tbl_blog` ( | |
`blog_id` int(11) NOT NULL AUTO_INCREMENT, | |
`blog_title` varchar(300) NOT NULL, | |
`blog_link` varchar(100) NOT NULL, | |
PRIMARY KEY (`blog_id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=40 ; | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Auto Refresh Div Content Using jQuery and AJAX</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" /> | |
<style> | |
body | |
{ | |
margin:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `tbl_post` ( | |
`post_id` int(11) NOT NULL, | |
`post_name` text NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//fetch.php | |
$connect = mysqli_connect("localhost", "root", "", "auto_refresh"); | |
$query = "SELECT * FROM tbl_post ORDER BY post_id DESC"; | |
$result = mysqli_query($connect, $query); | |
if(mysqli_num_rows($result) > 0) | |
{ | |
while($row = mysqli_fetch_array($result)) | |
{ | |
echo '<p>'.$row["post_name"].'</p>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//insert.php | |
if(isset($_POST["post_name"])) | |
{ | |
$connect = mysqli_connect("localhost", "root", "", "auto_refresh"); | |
$post_name = mysqli_real_escape_string($connect, $_POST["post_name"]); | |
$sql = "INSERT INTO tbl_post (post_name) VALUES ('".$post_name."')"; | |
mysqli_query($connect, $sql); | |
} |
NewerOlder