Questions tagged as 'mysqli'

1
answer

Type blob column does not register with type "b"

When trying to enter a comment text in a blob type column, which in the anti-injection-sql encoding ( mysqli_stmt_bind_param ) has a "b", it does not register the text. ($sentencia = $enlace->prepare("INSERT INTO tabla (nombre, direcc...
asked by 18.04.2017 / 11:28
1
answer

Date 12/22/2017 12:00 AM to 2017-12-22 12:00:00

I am trying to update dates in MYSQL according to the data provided by a Datepicker form. (12/22/2017 12:00 AM) The function that inserts the data and modifies the format is the following: public function changeDateBegin(){ $da...
asked by 07.04.2017 / 13:52
1
answer

How to send a form in parts? [closed]

I am creating a web page, I have 1 form divided into 4 tabs my question is how I can send to the BD every part of the data, it is a single table the whole form, they are asking me to be able to save the form for example the tab one and then you...
asked by 29.03.2017 / 03:08
0
answers

Label reference [closed]

I have this code and this function and I want the value obtained in the function to be able to send it to a label in my index file so the user can see it. for example if my select option says Rob my label says robertos $(function(){...
asked by 14.03.2017 / 02:15
2
answers

Create user levels in login system using sessions

I would like to be able to establish user levels (administrator and normal user) using the sessions, I already have in my user table the level of the account now I would like to validate your entry but I do not know how to get the level of the t...
asked by 02.03.2017 / 14:51
2
answers

problem with header location in two different urls

I have the following code require('db.php'); if($_POST['id']); { for($i=0; $i<count($_POST['id']); $i++) { $msjn=$_POST['mensaje']; $idfoto=$_POST['id']; $nomb=$_POST['nombre']; $r1=$_POST...
asked by 01.03.2017 / 16:18
2
answers

php make a web with login and navigate inside without losing the logeo of the web

Hi chic @ s I have this script: <?php session_start(); include_once "conexion.php"; function verificar_login($user,$password,&$result) { $sql = "SELECT * FROM usuarios WHERE usuario = '$user' and password = '$password'"; $r...
asked by 02.01.2017 / 22:56
0
answers

Error in Laravel, when running php artisan migrate: install

I have vagrant and virtualbox installed to perform the development environment. and when running vagrant up, it initializes the virtual server correctly, but when I run php artisan migrate: install I get the following error    [PDOException]...
asked by 19.11.2016 / 06:06
1
answer

Calculate and print average grades in subjects associated with students. (Printing of tickets per student in batch)

In this FPDF code I print values of n subjects with grades of x students consulted with the SQL statement. What it does is print a ballot with grades and subjects per student on different pages. For example, if group 100 has 23 students...
asked by 30.11.2016 / 06:12
1
answer

Query of date filter does not give expected result [closed]

My intention is to list a series of products, specifying a range of dates of reservation intention, and filtering the products not yet reserved. $comprobar_reservas_disponibilidad = mysqli_query($con,"SELECT DISTINCT flotaid F...
asked by 24.10.2016 / 10:02