I'm creating a site where I need a map, and users fill out forms with latitude and longitude to create a point on that map.
Everything is stored in the database but I needed the point name, latitude, and longitude to be passed in an array first....
I created a project in CI and I'm going through the following problem:
I split my controllers into two folders:
application/controllers/painel/
and
application/controllers/site/
In the subdirectory panel there is the home controller an...
Through the code below I retrieve all users logged into the system and display them in a table.
<?php
$dados = array(
'session_id',
'ip_address',
'last_activity',
'user_data'
)...
I have a JSON and I need to know the name of my object and the values it has, for example:
{"Pessoas" :
[
{"Nome": "Welson Play", "Idade":19},
{"Nome": "Stephanie", "Idade":15},
{"Nome": "João P...
I need to export data from an array inside an html table, the function is working but I do not know how to export with while inside a table, I made an analogy with the code below.
function imprimir_Tbl($Id, $Nome){
$array = array();
for($i=0;...
I'm trying to create a theft to automate a process, as post here: Automate process - Robot?
Given the suggestions, I'm following using cURL. What is happening is the following: It manages to login, goes to the second page where the form is...
I created a framework for my own use, a bit for understanding how an fw works, but it turned out to be a basic working tool. I know that many will say that one should not try to reinvent the wheel. But I'm not trying to do this, I'm just wanting...
It is common when you first encounter this doubt.
I have to perform an operation that is dependent on a condition:
Example 1
$operacao = 'somar';
$valor1 = 5;
$valor2 = 10;
$saldo = null;
if($operacao == 'somar'){
$saldo = $valor1...
I'm trying to send JSON of view to a route, but I can not. Unfortunately I know little about JSON , ajax , GET and POST .
In the view, json:
var json = {
"numeroMesa": numeroMesa,
"itens": itens
}...