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
/*global browser, window, body, document, alert */ | |
var URL = (function () { | |
"use strict"; | |
var url = window.location.href; | |
var params = url.split("?"); | |
var keyValues = params[1].split("&"); | |
var objectArray = {}; |
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
var Request = { | |
method: "POST", | |
send: function(url, data, callback){ | |
var dataToSend = this.QueryString(data); | |
var ajax = new XMLHttpRequest(); | |
ajax.open(this.method, url, true); | |
ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
ajax.onreadystatechange = function(){ |
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 | |
class DataBase extends MySQLi{ | |
/** | |
* [$host description] адрес на сървъра | |
* @var string | |
*/ | |
private $host = "localhost"; |
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 | |
$link = mysql_connect("localhost", "root", ""); | |
if(!$link) { | |
die("There is a problem:<br />" . mysql_error()); | |
} | |
if(!mysql_select_db("DATA_BASE_NAME")) { | |
die(mysql_error()); | |
} |