Questions tagged as 'php'

1
answer

Get an entity from in eventSubscriber

I am using an eventSubscriber to dynamically load a field (Patient) in a form, of which in its preSubmit function I need to obtain in addition to the id the patient's ID. The id can be obtained directly, but the ID I need to bring the ent...
asked by 24.05.2017 / 07:56
1
answer

Store select result

In a previous post ask this: Download selected object and thanks to a user gave me the idea, which I appreciate very much. But now I have another doubt, and since I have to have 50 of respect to be able to respond and others, well I make anoth...
asked by 24.05.2017 / 09:20
1
answer

Problem sending mail with PHP

I am trying to send a mail just after inserting records in the database. But it seems that the PDO has some conflict with the mail () statement, since the PDO works perfectly (without sending the mail) But when entering the line of...
asked by 22.06.2017 / 18:55
2
answers

Can a result generated in PHP be displayed in an HTML?

I am doing a program that makes several calculations and in the end generates the result in a $resultado , the data is entered from the HTML in <form method="POST" action="archivo.php" > For example, in the <form>...
asked by 22.06.2017 / 23:13
1
answer

Permissions to files uploaded with PHP

This is my subcode of the archo. if(empty($error)){ $archivo = "/".$dni."_".$nombreArchivo; $ruta = $directorioSubida.$archivo; $consul=$conn->prepare("SELECT * FROM archivos where guardar = ?"); $consul->...
asked by 18.05.2017 / 16:14
2
answers

Bootstrap Fixed Header Responsive Table

Please I need help to set the header of my board with bootstrap. I tried several examples that circulate but in none I get the desired result. My table contains 11 columns and is within a div responsive: <div class="p...
asked by 15.05.2017 / 22:48
2
answers

PHP object oriented - Exercise Coffee

Dear, I am a bit confused with this PHP exercise. Develop a Coffee class with attributes _Maximum capacity (the amount maximum coffee that the coffee machine can contain) and _quantityCurrent (the amount current coffee in the coffee maker)....
asked by 15.05.2017 / 23:59
1
answer

PDO does not paint errors

Good afternoon, I am trying to tell PDO that when a SQL statement error is generated, the error code is generated, and currently I think it is due to the connection: public function __CONSTRUCT() { try { $this->pdo = new PDO('my...
asked by 11.05.2017 / 11:53
1
answer

php soap server prefix in elements

I am programming a soap server with php, the code: $options = array('uri' => 'http://myserver/wsdl', 'soap_version' => SOAP_1_1 ); $server = new SoapServer("http://myserver/wsdl/wsas.wsdl", $options ); $server -> setClass("myclass");...
asked by 07.06.2017 / 12:03
1
answer

Pass an fix to the find method of a laravel model

I have a statement that is responsible for obtaining the packages using an $ id and the find () method of the model: $package = Package::find($array); $package->each(function($package) { $package->type; $package-&...
asked by 07.06.2017 / 21:16