Questions tagged as 'mysqli'

0
answers

php insert does not add data to table by constraint error account

I'm having an FK error. I can not insert data through form using ajax and php insert code . When I fill out the form and click the submit button, ajax fulfills the role of sending the data to PHP in> add_ps.php ), however a return o...
asked by 16.07.2018 / 05:33
0
answers

How to separate array by columns

Good evening! I would like to ask your help in the following ... I need to read a txt, which contains information from a client x ... I'm not sure what to do, I need to separate this data and save it to a database ... I have been ab...
asked by 25.07.2018 / 07:10
0
answers

Errors when trying to update mysql script for mysqli [duplicate]

<?php Class mysql { public $query; public $data; public $result; public $rows; public $page = 0; public $perpage = 10; public $current = 1; public $url; public $link = ''; public $total = ''; pu...
asked by 10.07.2018 / 19:37
1
answer

Save checkbox in mysql with php

I'm trying to save this form to the database but when I got to the checkbox I could not save it to the database. Here are the codes I tried to use. HTML: <div class="col-sm-12"> <label><b>Como você ficou sabendo do empreen...
asked by 10.07.2018 / 14:24
0
answers

How to fix a connection error in a site?

I currently manage the website of a City Hall , and today, from nowhere, the following error began to appear:    Warning: mysqli_connect () [function.mysqli-connect]: Headers and   client library minor version mismatch. Headers: 50521 Librar...
asked by 27.06.2018 / 16:33
0
answers

Map does not carry points

I'm having a problem putting points on the map (I'm using the Google Maps API), the data is coming from the database correctly (I tested echoing on another page), but the points are not being created. (urgent for TCC). generateMap.php...
asked by 01.07.2018 / 20:48
0
answers

Fatal error when executing the query

I'm trying to do a while but I can not do it at all. You are returning the error below:    Fatal error: Call to a member function query () on null in /home2/techlogu/public_html/index.php on line 697 My code looks like this: <?php $...
asked by 21.06.2018 / 05:25
0
answers

Add multiple record at once with foreach

Good morning, how would I make this entry all at once fill in several tables? Mine is not working ... See my code: // Atribui uma conexão PDO $conexao = conexao::getInstance(); // Recebe os dados enviados pela submissão $acao = (isset($_P...
asked by 04.06.2018 / 17:23
0
answers

SQL query on 2 databases on different (mysql) servers

Hello. First, I make it clear that I do not know if this is possible. I'm trying to do a SQL query where I need the INNER JOIN data from 02 tables that are on different servers (a Local Server and another Remote Server). I want to do in...
asked by 27.05.2018 / 18:39
0
answers

Select VIEW returns zero

I made a simple login screen in the local environment (xampp) and it works perfectly, without any error, however, when uploading to my web server (both run PHP 7.1), it does not work, it only generates the error message login and password. After...
asked by 25.05.2018 / 12:52