Skip to content

Instantly share code, notes, and snippets.

View vitqst's full-sized avatar
🎯
Focusing

vitqst

🎯
Focusing
View GitHub Profile
@vitqst
vitqst / css
Created November 24, 2014 10:27
style
/*--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
--*/
html, body{
font-family: 'Lato', sans-serif;
font-size: 100%;
background: #FFf;
@vitqst
vitqst / app_.gitignore
Created April 5, 2015 18:01
aaaaaaaaaaaaa
/build
@vitqst
vitqst / client.php
Last active September 10, 2015 23:23
<html>
<head>
<script language="javascript" type="text/javascript" src="jquery.js"></script>
</head>
<body>
<!-------------------------------------------------------------------------
1) Create some html content that can be accessed by jquery
-------------------------------------------------------------------------->
<h2> Client example </h2>
<h3>Output: </h3>
@vitqst
vitqst / api.php
Created September 10, 2015 23:20
<?php
//--------------------------------------------------------------------------
// Example php script for fetching data from mysql database
//--------------------------------------------------------------------------
$host = "localhost";
$user = "root";
$pass = "root";
$databaseName = "ajax01";
@vitqst
vitqst / test
Created September 12, 2015 07:54
<form name="classic">
<select name="countries" size="4" onChange="updatecities(this.selectedIndex)" style="width: 150px">
<option selected>Select A City</option>
<option value="usa">USA</option>
<option value="canada">Canada</option>
<option value="uk">United Kingdom</option>
</select>
<select name="cities" size="4" style="width: 150px" onClick="alert(this.options[this.options.selectedIndex].value)">
</select>
</form>
@vitqst
vitqst / config.php
Last active September 12, 2015 09:16
<?php
$host = "localhost"; // host name ...
$user = "root"; // username database
$pass = ""; // pass database
$database = "vietbook"; // choose database
$connection = mysqli_connect($host, $user, $pass, $database) or die('cant connect');
mysqli_query($connection, "SET NAMES 'utf8'"); // importance !
@vitqst
vitqst / index.php
Last active September 12, 2015 11:57
<?php
include_once 'dbconfig.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title> test </title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
<?php
include_once 'dbconfig.php';
if($_POST['type_top'])
{
$type_top=$_POST['type_top'];
$query = "SELECT * FROM type_child WHERE type_top='$type_top'" ;
$result = mysqli_query($connection,$query) ;
?>
<option selected="selected">Select State :</option>
<?php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!--thẻ meta bắt buộc phải có trong project responsive-->
<title>Sichiblog - Tạo 1 trang web responsive đơn giản</title>
<link rel="stylesheet" type="text/css" href="default.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>