Jake Snake

1

votes
1

answer
70

views

PHP Update Query wont update

I'm trying to create a brute force protection on my login script. Although the query that's supposed to update the database that the account is locked wont work. I'm starting to get frustrated since I've been looking at this code for the last half hour.. Anyway here is the code: if(isset($_POST['sub...
Jake Snake
1

votes
1

answer
278

views

jQuery Slider Description each function

I have created a carousel slider with jQuery. But i am having problems getting the description to update after each slide. The slider is built up like: IMG IMG What I did in jQuery is: $('#sliderwrapper ul li:visible').each(function() { var currentDesc = $('#slider_description').text(); var newDesc...
Jake Snake
1

votes
4

answer
3.7k

views

Delay on while loop function

I've tried to make an automated slider, although it seems my code isn't working - it either crashes the browser or it just executes very fast. what I've been playing around with is the setTimeout, but it doesn't seem to work in a while-loop. var playSlider = true; if(playSlider) { var i = $('#slider...
Jake Snake
4

votes
1

answer
26.4k

views

PHP mysqli connect function [closed]

I've just started to look into Mysqli and I've understood most of it now, but I'm having a problem with a function that connects me to the database on other pages. What I'm aiming to have is to just type getConnected(); where i need to connect. this is the code: function getConnected() { $host = 'lo...
Jake Snake
0

votes
4

answer
6.8k

views

jQuery Dynamic content's click doesn't work [duplicate]

This question already has an answer here: Click event doesn't work on dynamically generated elements [duplicate] 20 answers I'm making a code where I add content dynamically by appending an ul element. The thing is that if I click the dynamically created button called savePalette it doesn't work.....
Jake Snake