Questions tagged as 'mysqli'

1
answer

How to install PHP modules with Dockerfile for instances of ElasticBeanstalk AWS

I need to install the mysqli and zip extensions in a Docker image, use the Dockerfile file to run the installation in my instances but with no results. this is my Docker file file: FROM php:5.6-fpm RUN docker-php-ext-install mysqli mysqlnd...
asked by 12.09.2016 / 18:25
1
answer

Argument is not a function, got undefined

I have an error because I have changed my controller I have the same problem. var app = angular.module('myApp', []); app.controller('customersCtrl', function($scope, $http) { $http.get("dashLot.php") .then(function...
asked by 06.01.2016 / 16:04
2
answers

I can not connect to the database

I have this code: <?php class Conexion { private $host = "localhost"; private $user = "root"; private $pass = ""; private $bd = "nutricion"; private $con; public function Conectar() { $this->con = mysqli_...
asked by 20.04.2018 / 19:32
2
answers

How to extract data from more than two data from a database column to take them to php?

I have the following table in which I want to extract the data from id_sample that are related to id_ott, for which I occupy the following query SELECT sample_id FROM lacem_obras_civiles.msa_register_show whereott_id = 111; Throw...
asked by 09.11.2018 / 18:02
4
answers

How to differentiate 2 id within the same query

I have the following quey: $query = "SELECT pedidos.*, users.id, users.nombre, users.email, users.username FROM pedidos INNER JOIN users ON pedidos.usuario=users.idusuario WHERE (email LIKE '%$busqueda%' OR nombre LIKE '%$busqueda%' OR monto...
asked by 15.11.2018 / 16:50
2
answers

Search and Delete duplicate MYSQL records

Well, my situation is as follows, I have a rather large database, and there are a lot of duplicate records (there are actually many that are repeated more than twice but I do not know how to call that). What I'm looking for is a query to h...
asked by 20.03.2018 / 01:41
1
answer

Script php, insert data in mysql

I have this PHP script where I make an insert query in a mysql DB, what I do is declare a mysqli object globally and then from a function make the insert, but since the insert function gives me an error, it tells me that recognizes the $ mysqli...
asked by 16.05.2018 / 17:58
4
answers

Error with PHP's RETURN function - Post [updated]

I have a problem with a function that I'm doing since it only gives me the primary data of the table and not a list NOTA: if it works with the echo but it comes out at the top of the site and what I want is that it works with re...
asked by 26.05.2018 / 23:34
3
answers

Error mysqli_query () expects at least 2 parameters, 1 given in to Insert data

I am making a system in which at the time of entering the data, this error marks me.    Error: Warning: mysqli_query () expects at least 2 parameters, 1 given   in <?php require("connect_db.php"); if (isset($_POST['descripcion']) &&...
asked by 01.02.2018 / 23:28
3
answers

I need to add a php text

I need to add a text that I define in a textarea that is at the end of the code but when wanting to enter it for the first time I get an indefinite variable as I do to correct this attached code <?php session_start(); if (!isset($_SESSION[...
asked by 28.11.2017 / 17:20