Questions tagged as 'mysqli'

0
answers

Multiple queries with a single connection

I'm doing a site where on the same page I need to do several queries, in mysqli. When I run the site on xampp perfect wheel. but not on the web server. Only the first query comes and not one error. It's as if I did not give a sql->cl...
asked by 04.07.2015 / 20:03
1
answer

PHP connection problems with MySQL (Access denied for user) [closed]

I'm a beginner in the area that refers to programming and computers. I'm having a problem that I can not get the solution anywhere. I have a Linux virtual machine with a MySQL server to supply the Zabbix Server monitoring tool (which is alrea...
asked by 20.01.2016 / 17:25
2
answers

Error connecting connection variable (PHP / MySQLi)

I'm finding it difficult to call a variable from an auxiliary php code, which connects to my database, on my HTML page. I researched a lot of content, but I did not find a solution to this seemingly stupid problem. My connection is being succ...
asked by 28.11.2018 / 21:25
4
answers

Sort a SELECT in MySql by a letter

How can I make a SELECT query in MySQL that sorts the results and initially presents those that begin with a specific letter? Ex with the letter P: Paulo Patricia (1st ones starting with the letter) Filipe (2nd those with the letter in the mi...
asked by 01.08.2018 / 21:29
2
answers

Password encryption in MD5? [duplicate]

What security does MD5 bring if the encryption of a password is only in the database in the password field? if by chance the system were invaded by any other breach would the MD5 influence something? Any internet site that Decrypta this MD5? W...
asked by 24.12.2016 / 01:06
2
answers

Show success message without leaving the page

I have a form that sends some data to the database and uploads to an FTP, the part of the database has a if that returns the error in a variable and shows the error in the form itself. But my question is how do I do this for another kind...
asked by 13.11.2018 / 19:49
2
answers

How can I not return an "X" value in DB?

How do I not return an "X" value in the database? For example, I have a Vagalume style website, and it has the page of each artist where the tab "Related Artists" is based on the TAGs registered in the BD, I wanted it not to return the artist v...
asked by 04.05.2018 / 04:38
2
answers

Error with ID AUTO_INCREMENT [closed]

My problem is to leave the first INSERT field empty, (if I fill in the program), in my phpmyadmin the ID field is AUTO_INCREMENT, but without modifying that part of the code, it stopped. Code: $sql = "INSERT INTO usuarios VALUES ('','$user'...
asked by 20.12.2016 / 01:30
3
answers

getJSON PHP does not show result

I'm doing a simple query via getJSON, but it's not returning the values to be shown. File testJson.php <!doctype html> <html> <head> <meta charset="utf-8"> <title>Documento sem título</title> <script...
asked by 10.12.2015 / 12:55
0
answers

Session "Leak"

Something strange happened while we were ratifying the system on the NET. Well, every time a user logs into the system, I store his ID as follows: $_SESSION['usuario']['uid'] = $id_user; and direct it to index.php header('location:inde...
asked by 13.11.2014 / 15:02