Questions tagged as 'mysqli'

1
answer

Help with accents [duplicate]

I have a problem to solve problems and accents in PHP pages and I need a light. To solve the problem of field field names I have used code no. below in my file funcoes.php and in all the pages I put include 'adm / funcoes.php'; File func...
asked by 13.03.2018 / 20:23
2
answers

Login Problem [duplicate]

I'm trying to create a Basic Login, with verification so it does not have records with same users in the database. But I'm having an error on this line $row = $resulta->fetch_assoc();    Fatal error: Uncaught Error: Call to a me...
asked by 04.04.2018 / 02:25
1
answer

Infinit Scroll - does not bring all DB data

I'm trying to implement an infinit scroll in my project, but I'm having trouble solving this problem The connection is perfect and I'm getting the DB information, but the code only shows one entry, what should I change to resolve this? Cod...
asked by 05.02.2018 / 22:56
1
answer

Do not select records that have the status = 'Off'

$query = "SELECT uf , count(*) as number FROM tab_clientes GROUP BY uf "; It is working fine however I have in the database a status field that classifies the person as Off (need to remain registered for other reports). I would like the rec...
asked by 19.01.2018 / 15:26
1
answer

Header with array and modal

So I have a page that shows a total of 8 divs per pagination, these divs have small information inside, they have 2 button that allows deleting and having more information about what is inside the div that in the case and the data of a phone numb...
asked by 01.12.2017 / 15:27
1
answer

Traversing rows from a table within loops

What I want to do is to mark the times and dates in the front-end according to the records of a table, but with the code I have, I can only mark the first row of the table. How can I go through the whole table, marking all the corresponding date...
asked by 01.12.2017 / 01:38
1
answer

Show all database files on a php page?

Well, I made this code to display all the files that were attached by the user, however it only shows the file with the smallest ID, ie the first files in the database. This is the code I used: <div class="container"> <div class="te...
asked by 25.10.2017 / 15:15
1
answer

I want to display data from a foreign key table in my main table, how do I do?

In PHP how do I instead of the foreign key id, the field that has the data appears? I have a room table that has column id , column nome and column tipo . And also I have the movie table, the movie rooms I've registered...
asked by 10.11.2017 / 20:54
1
answer

Error trying to insert data into a database

I have the following functions: function query($stmt){ try{ return mysqli_stmt_execute($stmt); } finally{ mysqli_stmt_close($stmt); mysqli_close($GLOBALS['conexao']); } } function cadastrarNoBanco($nome...
asked by 01.10.2017 / 15:47
2
answers

Save file names to DB and access them later?

I want that when uploading a pdf or ppt file on the site it becomes available so that the admins of the site can download. I am able to save the file to a folder, however I can not save it to the database, does anyone have any idea how to do thi...
asked by 02.10.2017 / 14:59