Questions tagged as 'mysqli'

1
answer

Like php mysqli

I'm working on a system of likes but things are very confusing, I have the Post table (The content to be tanned) with the following columns |ID|TITLE|CONTENT|LIKES| In the LIKES column, whenever a user presses the enjoy button, +1 is...
asked by 11.01.2018 / 18:00
2
answers

Mysqli with access denied even with correct settings

I'm having an unusual error for myself. Next: When I try to connect via mysqli, I get a failed authentication return (access is denied), and the parameters are all correct! To confirm this access normally via SSH console with the same parameters...
asked by 20.11.2016 / 22:24
1
answer

inserting data in mysqli with php

Good morning, I'm having a problem inserting data into mysqli with php. I am using a form with 3 fields: name, email and password. The problem is that the data I enter in the email field will stop the field and password and vice versa. And at...
asked by 16.05.2016 / 10:16
1
answer

transform MySQL record into php variable and display in HTML?

I'm asking you to search the database for a result that matches a url variable I already have, it searches fine, but I want to get another column in the same row as the url it fetched type this: | enrollment | name | Search by enrollment,...
asked by 07.04.2016 / 19:23
2
answers

Doubt on white space within PHP code

I am connecting to prepared statments to insert many variables, and in some cases it takes a long time to find the errors, and now I packed in one here and hit me a doubt:    Blanks make a difference, I can break lines and give   space...
asked by 03.10.2015 / 07:16
1
answer

MySQLi can not return methods

I am changing my PDO application to MySQLi since I will only use SQL itself. I create the connection in the main controller so that others can inherit it: class Controller { function __construct() { } public function openDB()...
asked by 17.10.2015 / 16:29
2
answers

Commit using PHP

Setting SET AUTOCOMMIT = 0 on the connection, but not working. I'm using $ mysqli-> real_connect () if (!$conn->options(MYSQLI_INIT_COMMAND, 'SET AUTOCOMMIT=0')) { $fErro .= '<p>Não foi possível desativar o autocommit</p...
asked by 02.07.2015 / 15:45
1
answer

How to create multiple tables at once?

I would like to know how I can make this code below execute the creation of several tables with mysqli_ at the same time because at the moment this code when executed only creates a single precise table so that it creates in the case al...
asked by 07.07.2015 / 10:26
2
answers

fetch_array does not return data

I am making a list of users and the data does not appear on the page. I waited for the user's name, his type, and the number of posts and replies he sent to the system to appear. There is another problem. Three users are registered, but only one...
asked by 25.05.2015 / 19:29
2
answers

How to mount a select picking information from the database

I would like to mount a select with database information using Mysqli , where value will receive information from my cod_usuario and the information that will be displayed is the column nome . <select> <...
asked by 12.09.2014 / 20:39