Questions tagged as 'mysqli'

2
answers

Sentence of INSERT Mysqli Prepared, what's wrong with it?

I have the following sentence to insert in my table, I get an error    Fatal error: Call to a member function bind_param () on a non-object just at the beginning of the sentence I did an echo of the values that I use POST and they are...
asked by 13.03.2017 / 15:07
2
answers

error with msqli_num_rows

I'm quite new to the subject of programming and I'm having problems when it comes to programming my website's search engine. This is the page where you tell me the error is: require_once ('../bbdd/bbdd.php'); $search = ''; if (isset($_POS...
asked by 20.04.2017 / 14:43
2
answers

Error in Ajax with query Mysqli

I am trying to recover some data from mysql , add them and show them by means of a query ajax Javascript $(function () { $("#previousdate").on("click",function(){ $.ajax({ type: "POST", url: base_url + 'index.php/welcome/sh...
asked by 19.04.2017 / 20:55
1
answer

Array foreach and MYSQL query with php

I have this example of foreach with array, and what I need to know is how can I enter mysql query to this array? <?php $cabecera=array("nombre","telefono","referencia"); $luis=array("Luis García","645395715","Trabajo"); $paco...
asked by 23.02.2017 / 02:18
1
answer

Syntax error when putting a number as mysql table name

Hello, I'm doing the following query with the variable $fechaActual = date('dmy'); dasd $mysqli->query("CREATE TABLE ".$fechaActual." (id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY)") This gives me syntax error but if I do this: $...
asked by 25.02.2017 / 06:44
1
answer

Load data from a database when pressing buttons (next and previous) No backspace

I have a system that shows "TIPS" of health contained in a database. I would like to add buttons next and previous The idea is that when you press next or previous one, change the nume_cons and then load the title, the description and the...
asked by 28.01.2017 / 15:24
2
answers

Send data from a table in a modal to a php table using php and jquery

I have a bootstrap modal to which I load data from my database in mysql what I want it to do, is that by clicking on the add button I add the product of the modal row to a table in php in another page and when I gave it to another product, I add...
asked by 16.01.2017 / 02:09
1
answer

Mysqli with php saves all empty data

E Fixed error "undefined index" with if, what happens is that I save empty data now in the database, without if I get error and just the empty guard, see something I do not? help please ............. This is the form, the select is nothing mo...
asked by 28.02.2017 / 05:37
4
answers

Mysqli saves the empty records from Php

Good morning everyone ..... I have a problem in which my form should send the records to my database, but what it does is keep my records completely empty, I leave my code and hope someone can help me, thanks. . This is my form, here I assign...
asked by 28.02.2017 / 17:03
1
answer

Error in php with MySQL query [closed]

I do not know how to ask this question very long since I do not know why this query does not work for me. According to the file in localhost I get an encapsulation error but I do not see the error if someone helps me I appreciate it: mysqli_...
asked by 14.01.2017 / 05:46