Ubuntu server error when inserting long string in mysql

1

Hi, I am using a new installation of ubuntu server 16.04.3 LTS, I have problems when inserting a string in mysql, I think it needs configuration and I have it by default.

The fact is that when I send a string for $ _POST of more than 164 characters the file receives the string but mysqli does not insert it and I see this error: Warning: mysqli_error () expects exactly 1 parameter, 0 given in C: \ xampp \ htdocs \ project \ inc \ add.php on line 19

When I send a short string of less than 164 characters, the insert to the database is perfectly fulfilled ... I suppose it will be some security setting in Msql.

Let's see if anyone can help me, thanks in advance.

Greetings and thanks!

    
asked by codzeus 29.01.2018 в 19:32
source

1 answer

0

The first thing you should do according to the official PHP documentation is to go to the mysqli_error () function as the first parameter, the connection you are using, if not, this function of the Warning you name, surely after putting that you can see the real error

    
answered by 29.03.2018 в 12:08