Questions tagged as 'php'

2
answers

Problem with header and foreach (headers already sent by) [duplicate]

I have a problem with a form in which I have several checkboxes. This is so they can choose various services. The checkboxes have as value the fields id_del_servicio,id_de_descuento together. This is so that later in the PHP, with a...
asked by 23.05.2016 / 22:50
0
answers

Update PHP variables when the page is reloaded

I am new to this and I am learning, but I have a problem that I can not solve. I have a variable called $ result where it collects all the information from the database when you log in, but I need to update it every time you update or access...
asked by 04.01.2019 / 11:15
0
answers

Problem with input hidden PHP form

I have to make a basic form included in a table send a certain value to then be able to delete the row, but I am not able to do so. This is a table with users, keys and delete buttons (which I use as submit). The idea is that when I press one...
asked by 04.01.2019 / 12:12
0
answers

Error 405 when sending variable with a Select

I have my code with a select that brings the variables of the database, but at the time of editing, I get the error, but curiously, it is at the moment of changing nothing else. <select class="form-control" name='canon'> <...
asked by 05.01.2019 / 16:04
0
answers

How to make a remote command console

I am trying to make a command console from a website that when writing a command in the console (Windows) returns what is printed on the screen but in the same website, what I need is that it is interactive, that when pressing enter or some butt...
asked by 03.01.2019 / 15:19
1
answer

Notice: Undefined index: PHP

I am learning PHP on my own and I came across this error ...    (Notice: Undefined index: name in C: \ xampp \ htdocs \ pdo \ save.php on   line 3       Notice: Undefined index: last name in C: \ xampp \ htdocs \ pdo \ save.php   on line 4...
asked by 03.01.2019 / 12:33
1
answer

Number of variables. Error

I can not find the error, to see if someone tells me that I am doing wrong. I added the registry but it gives me an error before. Warning: mysqli_stmt_bind_param (): Number of variables does not match number of parameters in prepared stateme...
asked by 02.01.2019 / 03:16
0
answers

Help hiding extensions with htaccess file

guys I have the following code in my .htaccess file and I want to know who can help me order my code: Options -Indexes RewriteEngine on RewriteCond %{SERVER_PORT} =80 RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} ErrorDocument 404...
asked by 04.01.2019 / 17:39
0
answers

Does not show data in the select query

good morning, I have this query for my front of users, with PDO connection but in SQL SERVER but it does NOT show me any result as if it had nothing in the user table, but when I make an insert it is possible to insert the new user . What could...
asked by 02.01.2019 / 10:04
0
answers

Button that removes a text box and a value from a div

As my question says, I have a dilemma in this part, and that is that I want to create a button that with the action of a javascript deletes a text box and in turn, subtracts a value from a div. I have a script created, but when you delete the...
asked by 03.01.2019 / 18:58