I have a class in which I need to do certain checks on an array, such as checking whether it is associative or indexed. I know there is no native function in PHP that does this, so I could use the example below.
function isAssoc($arr)
{
re...
I want to execute the modal only if the call exists. Because it's taking too long to open the page.
Below is the modal used:
<div class="modal fade" id="m_modal<?php echo $count ?>" tabindex="-1" role="dialog" aria-labelledby="...
Would you have some form of typing in the form sending the data to the PHP code without having to press submit simply by typing in the text input?
<form method="POST" action="">
<label>nome: </label>
<input type...
I have a function that loads a given path with through include . The parameters of this function are $file and $data . The parameter file is the name of the file that will be loaded with include within the function, and...
How do I display error messages in a variable, for example:
You have run the code all right, there you have the first message:
if($count==1)
{
// PRIMEIRA MENSAGEM
$change_profile_msg[] = "<div class='al...
I searched the internet and found nothing related. I want to set up a localhost server to test my applications.
I have already tested Xampp, Wampserver EasyPHP and others ...
Is there a paid system?
The correct way to speak is "Local...
Hi, I'm trying to block administrative access from my site and release it for only a few ips. I can do this using the .htacess well quiet but the problem is that I have the adminstrative module and the module frontend and .htaccess...
Good afternoon, I have the following piece of code:
function getData(){
var url = "http://teste.com";
var data = "";
$.get(url, function(response){
serverResponse = response;
for(i in response.content){...
I'm developing a theme for WordPress, for hobby and for studying a little PHP, JavaScript etc. and I'm having a little problem.
I'm working with the controller concept where all logic will be processed and then sent to a view. To make it clea...