Questions tagged as 'mysqli'

3
answers

Why do not you bring me the data of the sql query?

Good afternoon I'm doing a query on mysql given a date bring me the year and month and the reference for that month, the query is good but it's not bringing me anything, someone to help me find the error. <?php //comprobamos que las fechas...
asked by 23.06.2016 / 21:09
5
answers

How can I show each client their orders from mysql?

I update again Current code: <?php require('conexion.php'); /* Variable para el control de errores*/ $arrMensaje=array(); /* OBJETO CONEXIÓN */ $mysqli = new mysqli('miservidor', 'usuario', 'password', 'ndb', 'puerto'); /*...
asked by 02.11.2017 / 13:52
2
answers

Store several variables (or an array) in the same field (MySQL) [closed]

Can someone tell me what would be the best option to store the following data? The user (within a form) has the possibility to select multiple checkboxes (19), and I need to store if they are marked or not (all of them) in a single field....
asked by 09.10.2018 / 19:40
2
answers

how to search in php table with jquery

Good, I'm trying to perform a search on a php table. This is the code with which I show my table: <div class="form-group"> <label for="search">Buscar:</label> <div class="input-group col-sm...
asked by 21.06.2016 / 18:46
2
answers

How to create several buttons in the same HTML / PHP form?

I am starting the learning of forms in HTML and PHP, and I managed to create a button that sends the entered data to a MySQL database entered by the user. My question is, how can I put more buttons in the same form and that each one perform a...
asked by 20.09.2018 / 16:21
4
answers

Error inserting MySQL data with PHP

Can someone help me solve this error? the error that throws me is the following:    "Warning: mysqli_query () expects parameter 1 to be mysqli, null given   in ... " <?php include 'odbc.php'; /*datos personales*/ $nombre = $_POST['nom...
asked by 09.12.2017 / 07:05
1
answer

Is it correct to create a class with static methods to connect to a MySQL database?

I am starting to learn php and MySQL and I have the doubt of whether it is right to create a class with static methods for the connection. The class that I created is this: class ConexionBD { private static $conexionBD; public sta...
asked by 11.04.2018 / 02:36
2
answers

Infinite loop in PHP

Hi, I've started to see the object-oriented programming in php and I'm doing an exercise in which I make an sql query in which I want to show all the news that I have but it generates an infinite loop of the first news that I have saved. I think...
asked by 09.11.2017 / 18:09
2
answers

How to call a MYSQL stored procedure from PHP?

I would like to know how to call a stored procedure of Mysql from PHP , I have tried it in several ways but of none I have given and I searched the Internet and neither. I tried it as a simple query like this: $cal = $_POST['calc...
asked by 02.01.2018 / 20:55
4
answers

Check all selected checkboxes

I want to validate that the user has to select all checkbox to insert something. I have validated that I select only one, but I can not get it all. My code php : while ($imprime = $resultado->fetch_assoc()) { $tabla .= '...
asked by 08.06.2017 / 21:38