Questions tagged as 'pdo'

1
answer

I was not activated timepicker (materialize)

I have a problem I do not activate the timepicker to be able to select the time of entry and exit input <div class="input-field col s12 m4"> <input type="text" id="hora_entrada" class="timepicker" name="hora_entrada"/>...
asked by 12.10.2018 / 02:30
0
answers

My site takes between 0.002 seconds and 5 seconds randomly

it has happened to me lately that my site delays in loading between 0.01 and 5 seconds in loading a page, I would like to know if I am doing something wrong in the code, since I do not understand why it happens.    Fatal error: Uncaught Error...
asked by 09.10.2018 / 23:58
0
answers

I want to work with this type of field and what I need to be able to work for a JSON

My connection file is like this: conect.php <?php // Connect PHP PDO $connect = 'mysql:host=localhost;dbname=comidas'; try { $db = new PDO($connect,'root',''); $db->setattribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);...
asked by 21.09.2018 / 03:33
0
answers

Problem with PDO and query with variables

I have a query that does not run correctly when I enter it in PHP: SELECT id_continente, id_pais, id_localidad, visitas, posicion_pais, posicion_continente FROM (SELECT *, @posicion := IF(@cont...
asked by 05.09.2018 / 10:24
1
answer

Receive a notice when someone leaves a comment on my website

I have this code, which is a form to leave comments on my website. I would like to know if there is any way to get that by adding something else code I can get a notice to my email when someone leaves a comment on the web. The code that I leave...
asked by 29.08.2018 / 02:28
1
answer

When trying to insert data into the DB I get an error [HY093]

The fact is that I am trying to insert users through PDO and CRUD and this is generating an error which I can not solve. The error is exactly this    SQLSTATE [HY093]: Invalid parameter number: parameter was not defined File containing...
asked by 22.03.2018 / 12:40
0
answers

Error executing a script to upload files via FTP to an external server - 'PORT' Command not implemented

I have a script to upload files via FTP to an external server through PHP, which is generating errors and even if it changes to the passive port, or from FTP_Binary to Ascii or inverse, keeps generating errors. When putting ftp_pasv () ,...
asked by 25.07.2018 / 23:31
0
answers

Check PHP MYSQL

I have the following code: <?php require("config.inc.php"); $conn = new mysqli($host, $username, $password, $dbname); if(!empty($_POST)) { if(empty($_POST['usuario_rut_administrador'])) { $response["suc...
asked by 30.06.2018 / 08:25
2
answers

Show blank page

I know that the code has some errors since I'm starting, please be patient, I made the corrections and I organized it a little better. $conexion = new PDO('mysql:host=host;dbname=db','root', ''); $login=$conexion->prepare("SELECT nombre_usu...
asked by 25.06.2018 / 03:45
0
answers

PDO does not save query values

I have an html for registering users in a system (signup.html), and with a form I send the data to a PHP that executes a query to save them in the database (signup.php), but when I review the table where the record should be saved there is nothi...
asked by 16.06.2018 / 18:42