I want my query to be saved in php in this way
var data = [
{nameusuario:IT01, dia:15, mes:9, axo:2017, IDsemana:1, cara:0},
{nameusuario:IT01, dia:22, mes:9, axo:2017, IDsemana:2, cara:0},
{nameusuario:IT0...
I'm trying to create a table or scatter chart that shows the number of successful and failed logueos of a PHP form but after a lot of searching I did not find a tutorial or something to guide me.
This is an example of what I'm looking for
link...
I have this result of a query
$consulta .= '<td>' . $v . '</td>';
where the variable ' . $v . ' is a number that contains leading zeros, so that excel recognizes that number in text format, I must add an apostrophe 'befor...
Good morning,
The purpose of this code is to check if a record (number), sent through the form, exists in the database. The submit button (which is invisible) must be displayed on screen if it is confirmed that the record entered exists in th...
I have a table where a cell contains an image, which when clicked will execute a function responsible for opening a box dialog with the image in big.
<td style="width: 20%;"><?php
$source = $row['T_IMG'];
echo "<img width='5...
I'm starting to create a CRUD. In the index method of the controller I have put this:
public function index(){
$productos=Producto::get();
return view('productos.index')->with('productos',$productos);
}
And in the index.blade.php...
I have a question ...
I'm doing a service order system and the customer is given a secret PIN
When the technician arrives, he must request the pin to change the status of the PENDING order to IN PROCESS.
The PIN is in MYSQL
How can I ch...
I want to print the colonias array in a select by means of a foreach but it does not fit.
{
"delegacion":"\u00c1lvaro Obreg\u00f3n",
"estado":"Ciudad de M\u00e9xico",
"region":"Centro",
"colonias":[
{"idcp":"27886","asentamiento":"...
I'm passing a value using href with php and get method but I think my syntax is wrong since it does not recognize me in the url this is my code
$dni=09309393;
echo'
<label id="msjgd">EL PACIENTE SE REGISTRO CORRECTAMENTE EN LA PR...
I have problems with this code that I try to execute:
$buscar = array("necesito 01","necesito 02","necesito 03");
$resul = $buscar[mt_rand(0, count($buscar) - 1)];
$query = array(
"q" => "'+$resul+'",
"count" =>...