Questions tagged as 'php'

4
answers

How to disable an option in a select

I'm working with PHP and JavaScript . I have a select , which is filled in by bringing the data from a BD . What I try to do is that when selecting an option of select , it is disabled so that the user can not access that opti...
asked by 10.01.2017 / 20:45
1
answer

send data null radio button, laravel

I'm new to this from laravel, and I have a problem sending data with radio buttons, sending them as null. ... controller.php public function create() { $salas=DB::table('sala')->get(); return view ('equipos...
asked by 30.12.2016 / 11:06
1
answer

Error Email PHP Enconding

I have this web page where I have a form with which to send messages to the gmail of the owner of the page, to contact him. .. link Each time I send a test message the topic of the message comes out without encoding ....
asked by 11.01.2017 / 13:51
5
answers

"Warning: Division by zero" in php

Friends I need help with a code ... I'm trying to modify a news template in php and I get this error, and I can not fix that I leave the message and the code.    Warning: Division by zero in ... on line 89   Something is wrong in your query s...
asked by 03.01.2017 / 18:04
1
answer

Show name of a record using the ID found in another table [closed]

I have two tables: Personal: cedula, rango_id Ranges: range_id, range (field with range description) I would like you to modify the staff where your rank is selected your ID would not appear, like, 1 2 3 4, but the description tha...
asked by 18.01.2017 / 15:32
1
answer

Registration system does not save anything in the database by mistake while

I have the following data logging system, although it seems that everything works fine, do not insert the data in the database: Conexion.php      $cone = new mysqli($host,$usua,$pass,$base); if ($cone->connect_errno) { echo "Falló la...
asked by 18.01.2017 / 00:22
2
answers

PHP - Decrypt

The encryption is done correctly but when using openssl_get_privatekey and save it in $key_resource the value is left blank so it throws the error: openssl_private_decrypt(): key parameter is not a valid private key in ......
asked by 09.12.2016 / 20:56
1
answer

Problem generating PDF in DOMPDF

I'm having problems generating a pdf from php with DOMPDF. This is the error that gives me    Uncaught exception 'Dompdf \ Exception' with message 'No block-level parent found. And this is the code I use: require_once 'dompdf/autol...
asked by 12.12.2016 / 11:20
1
answer

When interacting, change the style of a web and store it [duplicated]

I am developing a website with php, javascript, html5 and css3. I want to change the color according to what the user chooses in a developed configuration section and that those changes are stored How could I do it?     
asked by 29.12.2016 / 08:35
1
answer

Get the last ID of a table 1 and then insert it into a table 2 using PHP

I have two related tables and I want to get the last ID_primeraTabla to insert it in the second table since the ID_primeraTabla is the foreign key. any ideas ? What I have is the following $pregunta = $_POST["pregunta"];...
asked by 01.02.2017 / 19:16