Questions tagged as 'php'

1
answer

Passing PHP Variable A Modal Window

Cordial Greeting. I hope you can help me with what I want to do. I have a PHP - HTML table Well, the fact is that, when I click on the pen, I opened a Modal window: What I want to do, is to pass 1 variable to the Modal wi...
asked by 22.11.2018 / 21:43
1
answer

how to send the user to the home page if they are not logged in using sessions

I'm doing a simple login, where the user puts the data and takes it to the panel, but what I want to do is that if another user wants to enter that panel he can not access if he is not logged in. If you know, please help me. validate:...
asked by 21.11.2018 / 21:19
1
answer

Join several arrays into one two-dimensional in PHP

I would like to join several arrays into a single two-dimensional array. Each array corresponds to the data of a column and I would like to know if it is possible to put all together. My arrays are in this format: <?php $Id =array("1"...
asked by 22.06.2018 / 03:47
2
answers

Format JSON

I want to give a specific format to a JSON that I do from PHP to then receive it in a variable in JS and fill a table with it, but I do not know how to do it. Here the JSON is created: <?php $conexion=mysqli_connect("localhost", "ro...
asked by 20.06.2018 / 17:14
1
answer

Do not query DB SQL

I'm doing a project, in most cases the consultations are    they perform normally and correctly, but on 2 occasions (one of them is)    he performs the query, he tries to print the query and nothing happens.      $mysqli = new mysqli("localhos...
asked by 21.06.2018 / 10:01
2
answers

How to stop the execution of setInterval () which was executed using onLoad ()?

Hello colleagues, I have had a very annoying problem and it is as follows: I have a whole page made in ajax and jquery and I have different menus; and for example when entering the first menu, inside the HTML code I have an image with a Javascri...
asked by 23.06.2018 / 03:31
1
answer

Using BLADE without Laravel?

I am learning PHP and I would like to be able to use BLADE. Is there any way to use it without having to use Laravel? I found some information in English, but I do not know how to start using it. This is the one that I have found for example:...
asked by 07.06.2018 / 08:33
1
answer

It shows me the following error Notice: Undefined index: image

Hi I have a problem, it shows me the error Notice: Undefined index: image and I do not know why it will be: $sql="SELECT * FROM contribuyente WHERE id=$id"; $ressql=mysqli_query($conexion,$sql); while ($row=mysqli_fetch_row ($ressq...
asked by 07.06.2018 / 21:22
2
answers

How to create a redirection file with different destinations in PHP?

I mean, I use advertising on my website. but I have 2 different providers for each advertisement, so what I want is that when a user clicks on the barner, it takes it to a PHP file that contains the 2 destinations, if the user clicks the first t...
asked by 08.06.2018 / 16:58
2
answers

Refresh the content of a DIV

hello friends I have a registration form with a div below that shows all the records the idea is that when someone registers I refresh that record div with a function or something like what I do not want to actually have to bring back those data...
asked by 30.05.2018 / 14:09