Questions tagged as 'mysql'

1
answer

How do I insert variables from a select query into a database on a different server?

I would like to make a connection in php on two databases only on different networks, in that connection I would need to search a database on a server and insert it into a table in a database on another server For example: $conecta =...
asked by 22.03.2016 / 17:01
2
answers

Real-time database verification script

I wanted to make a script , where the page appeared: "Loading." "Loading .." "Loading ...". The 3 loadings would change constantly and when you would insert a result in banco de dados the loading would disappear and the value ent...
asked by 06.10.2015 / 17:54
1
answer

Login Screen - I can not log in a user, admin or user [closed]

Users table; create table usuario( usuario_nome varchar(15) not null, usuario_senha varchar(15) not null, primary key (usuario_nome) ); table permission; create table permissao( usuario_nome varchar(15) not null, usuario_permissao varchar...
asked by 28.07.2016 / 18:44
1
answer

Error writing to mysql [closed]

Good afternoon everyone ... I would like to know the reason for the error in the array below ... This happens when I pass it to write to the database Array ( [arquivo] => Array ( [name] => Tabloide Março 2018.pdf...
asked by 14.08.2018 / 17:21
1
answer

Insert Into Do not Send Values [closed]

I have this code to send values to a table in the database, it is not displaying any, it is simply not sending the values <?php include "../../lib/inc_con.php"; $mesa = $_POST['mesa']; $tamanho = $_POST['tamanho'][0]; $quantidade = $_POS...
asked by 18.12.2015 / 12:46
2
answers

How to register more information in the table [closed]

Here's my code: $nome = $_POST['nome']; $rg = $_POST['rg']; $endereço = $_POST['endereço']; $conta = $_POST['conta']; $agencia = $_POST['agencia']; $operação = $_POST['operação']; $bandeira = $_POST['bandeira'] ; //insere dados na tabela $sql...
asked by 28.08.2018 / 17:28
1
answer

Auto Increment PHP giving error

In this code below, I created a auto increment in php, but it is giving an error in the sum. Example: It works perfectly 1,2,3 ... 10, up to number 10. From there it repeats the 10, 10, 10 $qr = mysql_query("SELECT max(os) as os FROM a_...
asked by 23.06.2015 / 19:23
3
answers

Make a request on the server with 2 parameters

Well, I'm making a person use a "range" and decide a value, so the person changes the range, a search is being done in the database about a game and its value, use ajax with php to This, however, is giving you an error, can you help me?...
asked by 26.11.2018 / 14:42
1
answer

MySQL Deprecated [duplicate]

When entering data into a table the following message appears: Deprecated: mysql_connect (): The mysql extension is deprecated and will be removed in the future: use mysql or PDO instead in C: \ EasyPHP14.1 \ data \ localweb \ projects \ ph...
asked by 07.12.2015 / 03:37
1
answer

PDO connection file. How to use? [closed]

I have a PDO connection file. To include this connection in the other files of the system in order to make the requests in the database, I will use this ???? <?php require('conexao.php'); ?>     
asked by 29.09.2014 / 14:43