Skip to content

Instantly share code, notes, and snippets.

View razbakov's full-sized avatar
🖖
Hi

Aleksey Razbakov razbakov

🖖
Hi
View GitHub Profile
<?php
$db = mysql_connect ('localhost','root','12345');
mysql_query('SET NAMES UTF8');
mysql_query('SET character_set_client="UTF8"');
mysql_query('SET character_set_cоnnectiоn="UTF8"');
mysql_query('SET character_set_results="UTF8"');
mysql_query('SET character_set_server="UTF8"');
mysql_select_db ('blog,$db);
index.html: before </BODY>
jQuery(function(){
$('.nav li').mouseover(function() {
$(this).addClass('hover');
});
$('.nav li').mouseout(function (e) {
// Do not close if going over to a select element
if (e.target.tagName.toLowerCase() == 'select') return;
$(this).removeClass('hover');
echo <<<JS
<script type="text/javascript">
var userIdB = document.getElementById("sf_00ND0000003vleB").value;
ga('set', 'dimension1', userIdB);
console.log("UID fired: "+ userIdB );
</script>
JS;