Questions tagged as 'php'

2
answers

Use php mail () embedding a file?

$to = $email; $subject = "Pedido #".$id_factura; //se puede hacer esto porque el mail se manda pero no sale este //archivo $message = file_get_contents('../prueba.html',true); $headers = "Content-type: text/html\r\n"; $...
asked by 15.11.2017 / 17:28
1
answer

Group results mysqli

I'm trying to group results from a table so that I can add all the quantities of the same model, but I do not quite understand how it works. I will try to explain what I need to see if I am able: I have 2 tables that are called orders and oth...
asked by 12.11.2017 / 12:34
1
answer

Problem with & Ntilde and $ _POST

I have a problem with the Ñ in my program which can be solved by changing Ñ by & Ntilde. The html is in UTF-8. Neither javascript nor html have a problem with & Ntilde and php sometimes. What happens is that if PHP receives from AJAX NU & NT...
asked by 10.11.2017 / 15:36
1
answer

Retrieve data from stdClass Object

I use the codeigniter framework, I call from the view a selected data from a drop-down list in the following way: $nombre_activo = $this->input->post('tipo_activo',true); With this data I consult the database so that it brings me the...
asked by 11.11.2017 / 05:22
1
answer

Problem with remove_post_type_support () in Wordpress

I'm having a little problem with a Wordpress function, and although in principle everything is correct, the action is not executed.    What I need For custom entry types, disable the add comments feature. If possible, I would like to have...
asked by 10.11.2017 / 11:30
2
answers

Comment line in Laravel 5.1

How can I comment a line in a Laravel template that contains @include , @section , @endsection and even img src"{{ asset('libs/magnific-popup/magnific-popup.js') }}" I tried with <!-- -->...
asked by 10.11.2017 / 13:42
1
answer

how to do an INNER JOIN and show in php

   Table notes with the following fields The problem is that the student ID comes out, and I need to bring the student's name from the table alumnos I currently have my query on php in the following way: $getNotas = mys...
asked by 29.11.2017 / 03:51
1
answer

Why does not the code work for me? Help with PHP

I created a php with a tutorial on the internet and it used to work but suddenly it has stopped working. If you can help me, thank you. there goes the code: <?php if(isset($_SESSION['id'])) { header("Location: user.php"); } if(isset($_P...
asked by 19.12.2017 / 18:20
1
answer

The combobox does not send the selected code

Good evening I know they did not miss me, but I'm still stuck like a truck in the sand. Accomplishments this week: I've already 'awakened' and I can pass not only one but my three variables. I already prepared all the 'pretty' query as Cedano...
asked by 07.11.2017 / 23:55
1
answer

Ajax does not work

Container folder: Folder js Sub-Folder ajax JS File ajaxlogin.js Folder php PHP file consultas.PHP HTML file index.html My code is as follows: index.html <!DOCTYPE html>...
asked by 07.11.2017 / 20:51