Questions tagged as 'php'

0
answers

Button to debug table phpmyadmin

I make a form and what I need to do is make a button that debug my table calculations this so that it empties my table so that new data are inserted , I do not know how to do it by means of a button instead if I do it directly in SQL which is...
asked by 07.07.2018 / 23:06
1
answer

Databases in CodeIngniter

I'm starting with CodeIgniter and when I make a simple query to the database, it sends me the error that it is trying to access loclhost and not localhost. I already checked the database configuration and the host name I get localhost. $db[...
asked by 07.07.2018 / 00:58
4
answers

Error adding 'NOT IN' in a query of prepared statements

By adding NOT IN in a query: $stmt = $conexion->prepare("SELECT producto,detalle FROM producto WHERE activo=? NOT IN ($producto) order by id_produ...
asked by 16.07.2018 / 20:42
1
answer

Compare value of a preformatted field with sha1 in eloquent orm

I am sending a URL to the mail of a user who should receive it like this: link Where 23 is the id of a record in a table, which for practical purposes is not desired at this time, so I convert 23 with sha1 () a string .. so that the URL...
asked by 16.07.2018 / 04:07
3
answers

how to pass scrip variables that interpret a sql statement?

Good is the first time that I participate I am wanting to make the variables: xco, xto, xde, xcc recognize me in the query sql q I do below in vsql, it will not be possible if you can give me a hand or some idea to be able to find that way, than...
asked by 15.07.2018 / 18:53
0
answers

Pass a string obtained with javascript to php

I have a processing Sketch embedded in an html, this through a JavaScript request, it gives me a string "serie=11&temp=22" , I need to send that to a php file within the same directory. I can not get anything sent. <!DOCTYPE ht...
asked by 16.08.2018 / 21:42
0
answers

Filter By Dates in SQL

I have a somewhat confusing problem. First: I want to know how many days of payment correspond to a person according to their assistance within the current period. Table usuarios : id Nombre fecha_ingreso 1 Juan 01-01-2018...
asked by 16.08.2018 / 16:21
1
answer

mysqli_real_escape_string - I do not know what is recorded in the bbdd

As a good student, I have a question about the function     mysqli_real_escape_string My code: $connn=mysqli_connect("localhost","root","", "test"); 1// Obtenemos los datos del formulario, asegurándonos que son válidos. $usuario=mys...
asked by 17.08.2018 / 17:15
1
answer

Problem with axes vue and php: Undefined Index

I have a very simple code, I'm using PHP VueJs and axios for Ajax requests I have a button that sends data by ajax to a php file per post but it does not recognize post data, that I infer from this error:    Notice: Undefined index: email...
asked by 16.08.2018 / 06:01
1
answer

Compare 2 tables in the database using PHP

I'm doing a program where I compare in a database (Mysql-Workbench) 2 columns (difficulty, difficulty_student) of 2 different tables (EXERCISES, ANSWERS) in a column difficulty_choice of the table < strong> ANSWERS . I mean th...
asked by 16.08.2018 / 11:03