I am trying to collect data to show on my page comments but not the table ...
Can you help me?
I have attached code and database capture.
<?php
$host_name = 'dbxxxxxx.db.1and1.com';
$database = 'dbxxxxx';
$user_name = 'dboxxxx';
$pass...
You see, I have occupied the following function to be able to obtain the data of my current session:
public function login(){
$username = $this->input->post("username");
$password = $this->input->post("password");...
I have a conculta to my database
function ticketsanulacionpendientesSISTEMAS($conexion){
$pendientes = (mysqli_query($conexion, "SELECT COUNT(*) AS conteo FROM ticket WHERE tipo_solicitud = 1 && status = 1 or status= 2 or stat...
File nav.php, the one that I use to include it according to the ticket_type of the user after logging in.
<?php
$active = array();
for($i=0; $i<7; $i++){
if($_GET['active']==$i){
$active[$i] = 'active';
}
else{...
I have a javascript function in which I get a variable that I need to use in a different php file and I do not know how to do it. I show you the code of the files, thanks in advance.
JavaScript file (test1.html)
function boton() {
var...
I have this jquery code in which I assign the values obtained in txtVlr and txtQuantity to some variables, then multilink them and the result put it in the txtSubtotal just when there is a change in the txtquantity, but when executing it the var...
as I can access the elements of type checkbox and fence me adding in a input the number of selected rows as you can see in the image.
My table:
<tbody>
<?php if(!empty($tarimas)):...
I need to run a JSON array in PHP
Query URL: link
{
"coError": "0000",
"coRpta": null,
"feCaducidad": "05\/12\/2019",
"listaTramites": [
{
"nomTramite": "Rectificaci\u00f3n",
"tiTramite": "R",
"feTramite": "09\/...
I have an intermediate table (N: M) in MySQL where I store the idProfesor and idMateria , when recovering the data from PHP it returns me 5 rows:
id | idMateria | idProfesor
---+-----------+-----------
1 | 1 | 1
2 | 2...
Why does it show me the error: Array to string conversion?
If I just pass a value to the function anadirImagenAccesorio , and that value is a text.
PHP Code:
static public function anadirImagenAccesorio ($descripcion) {
$e...