Questions tagged as 'php'

4
answers

Mysqli saves the empty records from Php

Good morning everyone ..... I have a problem in which my form should send the records to my database, but what it does is keep my records completely empty, I leave my code and hope someone can help me, thanks. . This is my form, here I assign...
asked by 28.02.2017 / 16:03
1
answer

The "bash init.sh" command does not create the ".homestead" folder

what could it be? It only worked once ... then I deleted that folder together with .ssh and when I tried the process again ... it did not work anymore :( I have uninstalled the Oracle VirtualBox, also the vagrant and the Gib..then I have r...
asked by 26.02.2017 / 18:29
1
answer

Error in php with MySQL query [closed]

I do not know how to ask this question very long since I do not know why this query does not work for me. According to the file in localhost I get an encapsulation error but I do not see the error if someone helps me I appreciate it: mysqli_...
asked by 14.01.2017 / 04:46
1
answer

Show results in a select from the database [closed]

I want to pull data from a database but only show fields that are equal to 1 and its id equal to 7 say in an html select. Let me explain myself better: If your id is equal to 7 but your "home" field is equal to one, I do not want to show "hom...
asked by 12.01.2017 / 23:19
1
answer

Store a subquery in a variable

I am trying to store a subquery in a variable and then enter it in another query. The code I have is this: $anu = "(SELECT DISTINCT Prod_Anun FROM productos where Prod_Anun = 'Particular')"; $consulta="SELECT * FROM productos...
asked by 23.03.2017 / 20:21
1
answer

Show specific values in a symfony form?

I am creating a form in Symfony in which you must choose a category and a subcategory that depends on the main category (for example, if you select Music the subcategories are pop, rock, etc ... and if it is Shows you should be childish, adults,...
asked by 29.11.2016 / 17:55
1
answer

How to send headers from php to web service SOAP in java?

From my xampp server I consume a SOAP web service that is on a JBOSS server. When I use it I get the user and password parameters for authentication, but I send another parameter as a header and it does not arrive. If I consume the web service u...
asked by 05.12.2016 / 16:07
1
answer

Validate form with PHP

I already have my form and my validations done, what I really want is that when you enter information in the (input) text boxes of the form and when you leave a text box ( input) empty or incorrectly validated, do not delete the fields that...
asked by 27.11.2016 / 02:04
2
answers

Error backoffice.js: 128 Uncaught TypeError: Can not read property 'replace' of null (...)

When using the function replace() I get this error. I am using it because I am generating html code with user input values with a button. The problem is that if the user enters double quotes (") or simple (') the code is not generated...
asked by 21.12.2016 / 10:02
2
answers

How to do AUTO_INCREMENT on a composite key that only affects a key?

I have a 'Group' table that handles the groups that are open for subjects. The key to this table is the group number + subject code If I have: Materia No_Grupo TC2016 1 TC2016 2 TC2016 3 The AUTO_INCREMENT works fine but I want that when...
asked by 27.11.2016 / 09:32