Questions tagged as 'mysqli'

1
answer

txt file I inserted in the bd

Good, I'm making a website, where I will get a txt file that the user will upload (always in msm format (process, name, number)). I am trying to use arrays to fetch the data and insert it into the database. I already managed to fetch but I can n...
asked by 01.07.2016 / 03:12
1
answer

Lightbox Pagseguro

When I'm in the Pagasero Lightbox checkout, in the middle of one of the scripts I enter the data into my database. But after choosing the button CLOSE the purchase or CANCEL the purchase the record of that id is removed from the bank. My scri...
asked by 14.07.2016 / 04:20
2
answers

Function that returns mysqli_fetch_array

My scenario is as follows: I have a function called UserSearch () function buscaUsuario($conexao) { $retornar = array(); $query = mysqli_query($conexao, "SELECT user_name FROM usuarios"); while($result = mysqli_fetch_assoc($query)) { $re...
asked by 28.04.2016 / 21:45
2
answers

How to perform update on records marked with checkbox in a while

I'm not able to UPDATE the fields that are only selected by CHECKBOX, which I was able to develop below: BD.SQL CREATE DATABASE IF NOT EXISTS 'seq_acessos' DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; USE 'seq_acessos'; CREATE TAB...
asked by 07.04.2016 / 23:50
1
answer

Login page using mysqli_fetch_row

I am creating a fairly simple login page where the user enters their name and password, the system does the database scan (mysql) and validates its input, however, when I enter the values correctly the system returns null . Follow the html co...
asked by 22.02.2016 / 19:49
1
answer

Mysqli prepared sentences

Hello, I have a problem, I would like to know about prepared statements, I have this code: $query_email = ("SELECT email FROM usuarios_ WHERE email = ?"); $stmt = mysqli_stmt_init($conn); if (mysqli_stmt_prepare($stmt, $query_email)) {...
asked by 18.02.2016 / 01:47
1
answer

Use foreach in checkbox of a table

In the code I'm creating there is a display of all users of the site in an html table, so alright, but selecting multiple checkbox to exclude multiple users from the site simply nothing happens only the page updates but the data still continues...
asked by 02.01.2016 / 22:20
1
answer

Error creating mysqli connection

I'm trying to create a connection through MYSQLI plus this one giving error Fatal error: Call to undefined function mysqli_connect () in / home What can this be? $link = mysqli_connect("localhost", "xx", "xxx", "xxx"); if (!$link) { echo "...
asked by 11.10.2015 / 16:57
1
answer

Predict the next Bank ID

if (is_uploaded_file($_FILES["foto"]["tmp_name"])) { $imagem = time() . '_' . $_FILES["foto"]["name"]; $diretorio = 'fotos/ {{{AQUI VIRIA O NUMERO DO ID }}}' . $imagem; if (!move_uploaded_file($_FILES["foto"]["tmp_name"], $diretorio)) {...
asked by 01.10.2015 / 22:51
1
answer

How to do insert with values posted in textarea

I would like to know how I can make use of textarea along with php and mysqli to do the following I need to send 12 items inside a textarea and that these items are put with line break and that apply insert of those 12 items in mysqli being that...
asked by 26.07.2015 / 23:12