Questions tagged as 'php'

1
answer

ORA-01008: not all variables bound

I'm doing a query to a database using php, the case is that it gives me    error ORA-01008: not all variables bound And I do not know how to solve it. If you can help me, I appreciate it. The function that I am executing is: function co...
asked by 21.08.2017 / 20:09
2
answers

Can the value of a PHP variable be set as id?

My problem is as follows: I assigned an id to my button that contains the value of a PHP query. Here the code: <input type="text" name="Articulo" id="Articulo" value="1"/> <input type="number" name="quanti" id="quanti" class="form...
asked by 17.08.2017 / 22:04
2
answers

Problem when running consecutive MySQL queries in PHP

I want to insert records in a table from another table. The first record to insert is the record that has the sum of the amounts of the records in the source table. (Position) And the rest of the records to insert are those that appear in the so...
asked by 13.10.2017 / 00:58
1
answer

Send XML to the web service of SII AEAT (PHP SOAP)

It has already been asked, but I can not find an answer ... in a call to the AEAT webservice to send invoices, how is the sending XML embedded? Does anyone have a complete example of sending invoices issued and another received? $url = 'ht...
asked by 26.06.2017 / 21:12
2
answers

How to show the selected users

I am trying to show the selected users by means of a multiple selection , but only the last selected value is returned to me. This is my code where I send the selected data in the view: <div class="col-xs-4"> <div class="...
asked by 26.06.2017 / 10:10
1
answer

Is there any way to optimize this if-else conditional example?

I'm looking for a conditional that looks like this or validates but without using so many lines of code if (is_file(PATH_CONTROLLERS.$controller."/".$controller."Controller.php") || is_file(PATH_CONTROLLERS.$controller."Controller.php") )...
asked by 25.06.2017 / 20:51
1
answer

Pass Array to Int - PHP

I need to obtain the id of the student with his rout (identification number) which I achieve in the query that I do in PDO the problem in which an array returns and not an int. Then I was in doubt transform the value obtained in an integer or...
asked by 07.08.2017 / 19:09
1
answer

How to avoid SQL injection in this Php code and create MYSQL queues? [duplicate]

I have this code in a system that I am developing, it works but I know that I have to put security in it and also leave it to work in the long term, for which I would like to know how to prevent the database from falling down, to several users...
asked by 11.08.2017 / 01:20
1
answer

How could a search engine in laravel 5.1?

Good friends, the question is simple, I need to do a search engine in laravel but the way I'm doing it, complicates me a bit because I'm doing the following: currently in the controller I have this: public function index(Request $request) {...
asked by 16.07.2017 / 05:31
3
answers

Angular access 4 to php does not receive the JSON

Good day, I have a problem, I have my file JSON by xampp, and effectively this code extracts the data I need in JSON . In the part of PHP , if you receive files JSON and insert them into the database very well, but when...
asked by 27.07.2017 / 00:39