Questions tagged as 'php'

1
answer

how to accommodate AJAX JSON for search filtering?

What happens is that I grab a page already on the internet, and I want it to make a search in the box, a specific search within what is already filtered. //Filtracion $sWhere = "WHERE nomTipo ='Administrador'";//filtra los que solo son a...
asked by 15.08.2018 / 17:24
1
answer

Hide fields depending on the value in a list

I'm working laravel 5.5 I have this list on my form, The values shown are PHYSICAL and VIRTUAL: {!! Form::mySelect('id_uso', 'Uso', App\Usos::pluck('nombre', 'id')->toArray(), null, ['class'=>'chosen']) !!} and I would like if the...
asked by 15.08.2018 / 17:05
1
answer

I need help with a sql that I'm doing in php

to show me the students who are enrolled in each course, by means of a table called registers, which contains the course id and also the user id, but I do not know if I have to call the data by variables of session? they help me <meta...
asked by 08.08.2018 / 14:35
1
answer

Obtain information from a checkbox on a table

I have a table where I fill in the checkbox, before I ask if the user is in a permissions table, in case he finds me he checks the checkbox and if he does not leave it for me. Here my table <table class="table table-striped" id="dataTable"...
asked by 07.08.2018 / 13:23
1
answer

Print on a href inside a modal the Id of a BD

How can I do the following: I am sending the data from a tr to a modal in the following way: <span id="Id<?php echo $res['id']; ?>" style="display: none;"><?php echo $res['id']; ?></span> I pick them up in the mod...
asked by 17.08.2018 / 17:19
1
answer

How to execute a query number of times?

I'm doing a table in html and php, my problem is that I'm trying to execute a query ( insert ) 'n' number of times, I'm dealing with a for . This is my code so far <?php for($ca=1; $ca<25; $ca++){ $sqlc="inse...
asked by 17.08.2018 / 15:44
1
answer

how can I add up within a datatable

I have the following code where I walk with a while but I want in each segment of a AREA to put a row with its total and then continue with the rest Here my code $resultado = $conexion->query("SELECT Det.OP,Det.ID_Area,De...
asked by 17.08.2018 / 17:47
1
answer

levels of user login

I have created a code that differentiates user levels, specifically 2, client and administrator when logging using PDO. The thing is that I initially put this code on the client page cliente.php <BODY> <!-- NIVEL USUAR...
asked by 08.08.2018 / 16:22
2
answers

How to store value in cell and display it with a button

I have a table that I fill in from a query to the base. I receive the records that I need through a while and in the last column of the table I place a button. The idea is that when I click on that button I can visualize a modal with the data of...
asked by 08.08.2018 / 15:44
1
answer

How to show values with AJAX when loading the page

at the moment of entering my index.php page <!DOCTYPE html> <html lang="en"> <head> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.highcharts.com/highcharts.js">...
asked by 08.08.2018 / 20:31