Questions tagged as 'php'

3
answers

form php error [closed]

Good people. When I opened my web page, I was sent an email with the empty php contact form. When really what I want is that by clicking on send the contact form I get the email with the entered data. I leave my html and the php to see if anyone...
asked by 04.02.2018 / 17:30
1
answer

PHP equivalent JavaScript functions

I have this code in JavaScript, getting the values of some datepicker and it works correctly: var fecha_ini = $('.fecha_ini').val(); var fecha_ini_dia = fecha_ini.substring(0,2); var fecha_ini_mes = fecha_ini.substring(3,5); var fecha_ini_anio...
asked by 27.03.2018 / 17:07
1
answer

How to limit one entry (purchase) per user?

This code is the action of a purchase form, I want only one user to register a purchase. Here in the code if you have not bought anything, your ID will not be in the table tickets so you can add the information, however if your ID was already ad...
asked by 20.06.2018 / 18:54
1
answer

How to connect and display data from a database in PHP

I want to connect a database to a PHP page, in another that I have it works well, but it is this I need to connect and show inside the echo. I have this that I use in another page: <?php $conexion=mysqli_connect('localhost','user...
asked by 26.06.2018 / 23:42
1
answer

How to send a different email for a different form in laravel?

I need to send an email for one form and another email for another form ie I have two forms in the same view, The first form is called user has the following fields: name mail subject comment When the user sends the message, an e-m...
asked by 10.06.2018 / 22:51
2
answers

Show field and its mysql database content

How about! I have a detail when presenting a query This is my code where I consult and show the result: $consulta_A = mysqli_query($con,"SELECT * FROM articulo8 WHERE fraccion = 'VI'AND inciso ='Inciso H' AND ano = '2017' ORDER BY mes DE...
asked by 31.01.2018 / 18:03
1
answer

How to return the user to the main page if they are not logged in or close the session

I need to know how to get the user returned to login.php if he does not have the session started. This is my code: login.php <?php // Include config file require ('connection.php'); if (isset($_POST['usuario']) and isset($_POST['contras...
asked by 27.01.2018 / 02:24
1
answer

Doubt about passing variables from jquery to php

I'm trying to pass several variables taken from a calendar from jquery as soon as you click on a certain date in the calendar. When clicked, throw the date into an input with id="my_hidden_input" $('#datepicker').on('changeDate', function() {...
asked by 03.07.2018 / 20:01
1
answer

How can I access a variable in a config.ini file?

How can I get the value of a variable found in the file config.ini in the root of my hard drive and be able to use it for a SQL query?     
asked by 03.07.2018 / 19:36
1
answer

Error Only variables should be passed by reference when Inserting data by query parameterized with PHP and MySQL

I have the following code: public function nuevoUsuario($id_empleado, $username, $correo, $pass, $id_tipo_usuario) { //tiempo de espera sleep(1); try { $this->Conectar_BD(); $this->query = "INSERT INTO us...
asked by 02.02.2018 / 20:56