<code></code>
mysql_query("INSERT INTO users SET user_login='".$login."', user_password='".$password."'");
setTimeout(function(){console.log(previousValue)}, previousValue+previousValue);
or die(mysqli_error($link))
$users_login = mysqli_query($link, "INSERT INTO `login_pass`(`login`, `pass`) VALUES ('".$login."', '".$pass."')") or die(mysqli_error($link));
SELECT t2.user, IFNULL(t1.activity, 0)
FROM (select * from table2) AS t2
LEFT JOIN (select * from table1) AS t1 ON t1.user=t2.user ORDER BY t2.user
window.location.hash = target;
jQuery(function ($) {
if (window.location.hash) {
var target = window.location.hash;
// убираем хеш из строки(отключаем дефолтный "прыжок")
window.location.hash = "";
// аниммируем скролл
var target_offset = $(target).offset() ? $(target).offset().top : 0;
var customoffset = 85;
$('html, body').animate({
scrollTop: target_offset - customoffset
},500, function () {
// возыращаем хеш
window.location.hash = target;
});
}
$("#.menu a[href^='#']").on('click', function(e) {
e.preventDefault();
var target = this.hash;
var target_offset = $(target).offset() ? $(target).offset().top : 0;
var customoffset = 85;
$('html, body').animate({
scrollTop: target_offset - customoffset
}, 500, function(){
});
});
});
<ul id="menu-topen-1" class="menu">
<li class="menu-item"><a href="http://rcamedia.ru/#solutions">Solutions</a></li>
<li class="menu-item"><a href="http://rcamedia.ru/#team">Team</a></li>
<li class="menu-item"><a href="http://rcamedia.ru/blog">Blog</a></li>
<li class="menu-item"><a href="http://rcamedia.ru/#contact">Contact</a></li>
</ul>
var homepage = 'http://rcamedia.ru/';
$('a[href*="#"]').live('click', function(event) {
var attrib = $(this).attr('href');
console.log(attrib);
if (attrib == "#") {}
else if($("div").is(attrib)) {}
else {
window.location = homepage;
Либо поменяйте на int либо мой ответ ниже