Posts by montedo-dev • 70 points
6 posts
-
2
votes1
answer378
viewsA: Block direct access to a php page
One of the ways to do this control is through PHP. I found the solution to your problem in another Question stackoverflow. But I will explain the functioning of the code that was chosen by the…
-
0
votes1
answer69
viewsA: I cannot resolve this mysqli_query() error
The mysqli_query in its procedural style requires you to enter the connection link in the first parameter. Reference: Manual PHP - mysqli query In your case I believe the code would look like this:…
phpanswered montedo-dev 70 -
0
votes2
answers90
viewsA: View div according to day and time
There were two problems, the first was in the variables of $current date and $current time that were without the date function, the second was in the IF that was being closed before the other…
phpanswered montedo-dev 70 -
0
votes1
answer137
viewsA: Laravel with fully separate code
It is not wrong to use in separate files. The tutorials you should be looking at must be using the Blade Engine. In the documentation of Laravel about the Blade he informs: Blade is the simple, yet…
-
-1
votes1
answer64
viewsA: Input AJAX parameters
What happens is that you have not determined an event for the firing of Ajax. As you declared the script tag before your html form the function was executed before the form was loaded. If you…
-
0
votes3
answers657
viewsQ: Click and dblclick in javascript
I’m new to JS and I’m learning, and I’m doing an old game in which the first click is for the player1 to put the "x", and two clicks for the player2 to put the "o", what’s the best way to do it?…