Questions tagged as 'mysqli'

2
answers

Delete button does not work

I created a delete button that is on the line of every record I'm displaying in a table, but when I click on it and display the delete screen, I realize that the last record in the table is always selected regardless of which item I click. Below...
asked by 18.04.2017 / 23:43
1
answer

Error Warning: mysqli_fetch_array () and no error returned in mysqli_error

I have a simple error and can not find a solution, it seems to me that my problem is different from this answer here . The error message is this: Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, array given in **** o...
asked by 02.03.2017 / 16:38
1
answer

Data view does not work

I need to display records coming from the database, I'm doing this through a while and inserting each field into a td, but if I do not limit the number of records in the select itself, they all stay on the same line (td). Here is the code: $se...
asked by 29.03.2017 / 14:07
1
answer

Display data from a table by adding a specific column

Good afternoon! I'm a beginner in php and I'm trying to build a table that tells you the date and sum of sales, but I can only display the sum of the values but I can not present the date ... p> $mysqli = new MySQLi( 'localhost', 'login', 's...
asked by 24.03.2017 / 19:42
1
answer

Filter Search

I have a problem with creating a search filter with select, I was very confused, I'll post the code and an image of what I need: the code: <?php session_start(); include_once("../../conexao/conexao.php"); include_once("../....
asked by 23.03.2017 / 13:09
1
answer

Search Field Query

I need to make a query that searches all records that have the term typed in an input , for example: Car, return car blue, green car, etc. .. My current query : $query = "SELECT * FROM veiculos WHERE nome = '$veiculo'"; Thank you   ...
asked by 14.02.2017 / 13:15
1
answer

Checking and Inserting Data into a Table

Good evening, I'm implementing a very basic facebook login system on my site, the system should capture the user's basic data (id, name and email) and save it to a table and that's where I'm having difficulties, already I ran around many forums...
asked by 03.02.2017 / 00:07
0
answers

Code is not sending data to the database

This first code to register is not working, it is the same as another one that is working that registers the users, it is giving the error in $ insertenome and shows the message Could not insert registration: , I searched but did not find the...
asked by 02.02.2017 / 21:51
4
answers

MySQLi vs PDO - Which is the most recommended to use?

With mysql_* entering the deprecated state, the PHP documentation recommends using the PDO and MySQLi. Which do you recommend for use? PDO seems to be more suitable for working with object-oriented only than at the same time I saw...
asked by 06.03.2014 / 18:10
1
answer

How to fetch values in a PHP file with jQuery - AJAX?

I want to get a string in a PHP file called search.php I want to return a string for my index.php but I want to do this when calling the try_it () function, is there any way I can do this with jQuery? I do not want index.php to update the page,...
asked by 26.01.2017 / 18:14