I have a select query to show me the exams that a student has done in a table. There are two fields in that table that I modify dynamically with select in javascript but I have another boolean field that I would like to make when clicking change...
I have to make a list of the daily reports made by commercial agents and office managers in a single list. The reports are stored in the PPR table which has an id_user (if it is saved by an administrative) and a id_agent (if the agent makes the...
I have this form and I want you to show me a confirmation message just by selecting "CANCELED" before sending the form:
<form action="<?=URL?>comprobantes/actualizar_estados" method='post' id="frmEstado2">
<div class='modal-...
From the controller I execute the following query:
$pruebas = DB::select( DB::raw("SELECT
t1.id,
t2.name AS 'Type',
t4.company AS 'Company',
t4.name AS 'clientName',
t4.lastname AS 'clientLastName',
t4.email AS 'Co...
I have a website where if I access the main page of the site it does not show any problem and I can access it successfully. The problem is that within the site I have a folder called chamilo and trying to access it gives me the error 404 as if t...
I am trying to fill some inputs depending on the value of a main input ... I mean, I have a form inside a div with an id so I can call it from a js
<div id="revisarCliente">
<form role="form" method="POST" class="formularioVenta"...
I have a dilemma that I try to do something that I do not know if it is even possible, I have 2 databases dpnmwin and spi_intranet of which dpnmwin is an existing one of a long time ago and which I can not touch its structur...
Is there a simplified way to define an array and set it to default values? For now I have the following:
$arrData = [];
for($i=0; $i<20; ++$i) $arrData[] = 0;
Any ideas? I know that in Java and C ++ you can but in PHP I do not know.
...
When I try to run my page, I get this error:
Parse error: syntax error, unexpected 'if' (T_IF) in
C: \ xampp \ htdocs \ Login18 \ Login \ vista \ admin.php on line 143
<form method="POST" action="<?php echo $_SERVER["PHP_...
I'm trying to get an id from a database but the following error has come up:
Array to string conversion
My code is as follows:
<?php
require 'funciones.php';
$pwd=md5('pwd');
$respuesta = funciones::login('user', $pwd);
if ($respuesta)...