Questions tagged as 'php'

1
answer

I can not change records from a database table

It is the following, I need to make my site can change login data, registered in the database. I've made the codes, but when I click to change, nothing happens ... The files I'm using: alteraadm.php $conexao = @mysql_connect("localhost","ro...
asked by 15.11.2015 / 03:24
2
answers

How not to let a Domain appear on Google and other search engines

I have an online system and would not like my domain to appear in google or other search engines, I would like to make it private. is there any way to do this?     
asked by 29.09.2015 / 14:35
2
answers

Return JSON to PHP

I'm doing a registration system, where the zip code search should appear as soon as the field changes. But the AJAX return is not working. How to return from JSON to PHP? PS: CEP's search is offline <script type="text/javascript">...
asked by 28.09.2015 / 22:52
1
answer

Return of the ajax function with result of a sql search

I'm making a section on my site, which has a select field. When I select something in this select , I want to perform a search on the DB, returning information about that selected item to use that information elsewhere in the site....
asked by 29.09.2015 / 21:04
2
answers

Display different objects with equal groups

I tried in several ways, got different results some good, others not so much. I would like to do something like store group / objects in MySQL and display on screen using PHP I have this table Iwouldliketodisplayaresultsimilartothis(madei...
asked by 29.09.2015 / 01:02
1
answer

Guzzle and asynchronous requests in PHP

I was taking a look at the GuzzleHttp documentation and saw that there is an explanation there how to use it to make asynchronous requests. $promise = $client->requestAsync('GET', 'http://httpbin.org/get'); $promise->then(functi...
asked by 16.12.2015 / 17:40
1
answer

Help with INNER JOINS

I'm having a problem with INNER JOIN. When I do a search for a certain sale, it brings me all sales related to the customer code, since it is the field "coder" that associates the 03 tables (Customer, Sale and Item Sales), besides taking only...
asked by 23.12.2015 / 11:59
1
answer

Read CSV and save to array with variable

I have a code where I read the EXCEL .CSV file and display the data on the screen, but I need to save those values in an array. My code: <?php $file = fopen(numeros.csv', 'r'); while (($line = fgetcsv($file)) !== FALSE) { //$line is an...
asked by 08.11.2015 / 14:58
1
answer

Insert with pdo and OO

I have the following class that manages bank: <?php abstract class database{ /*Método construtor do banco de dados*/ private function __construct(){} /*Evita que a classe seja clonada*/ private function __clone(){} /*M...
asked by 09.11.2015 / 00:44
1
answer

Mysql Insert, Auto Insert?

$insert = mysql_query ( "INSERT INTO analise VALUES ( $analise_hora )" ) ; I am trying to insert this data with this function automatically when the user enters the page, but is not being inserted, my time variable is right I gave an echo to t...
asked by 18.05.2015 / 18:18