Questions tagged as 'php'

2
answers

Improve the code to just get the value of the localstorage [closed]

I have the following code: jQuery.ajax({ type: "POST", data: $(accent_color).serialize(), success: function(data) { console.log(data); } }); How do I get this code to take the value below: var accent_color = localStorage.getIte...
asked by 06.04.2016 / 18:26
1
answer

Setting limit for query with UNION in MySQL

I would like to know how I create a limit for a query that uses UNION in MySQL, in my case I want to set LIMIT 5 to the following query: $friends_a = mysql_query("(SELECT * FROM users WHERE id!='$user_q[id]' AND id='$friends_1_q[...
asked by 29.01.2016 / 21:35
1
answer

Release access to database table data for third-party system

Is there any way to release read access from a specific database table to a third-party system? For example, I have a table called "clients" and a competing system has an efficient ticketing feature that can take advantage of this data and ne...
asked by 24.02.2016 / 03:53
1
answer

Inner Join - return by id column name of another table

I have two tables in the DB: category table: id_categoria | nome_categoria 1 camisetas 2 estrelas post table: id_post | título | resumo | conteúdo | categoria_id 1 teste lorem ipsum...
asked by 11.03.2016 / 01:57
1
answer

Block file download via PHP script

Hello, I'm having trouble downloading some files. I suspect someone on the team is 'inputting' a php script that downloads files from the server (such as bd configurations in production). I wonder if it is possible to block the download via s...
asked by 03.08.2018 / 19:28
1
answer

Registration insertion with webservice returns error but inserts into the database

Hello, I have a javascript function that makes an ajax call to a php file that should insert the records into the MySQL database. Well, I'm getting the records but the function is returning an error. Does anyone know the reason for the error? Tha...
asked by 28.09.2016 / 15:40
0
answers

UPDATE PDO, AJAX, PHP Object Oriented

I have the following function within my class public function update(){ try{ $stmt = $this->conn->prepare("UPDATE Tabela SET Dado1 = :Dado1, Dado2 = :Dado2, Dado3 = :Dado3 WHERE DadoId = :DadoId");...
asked by 27.09.2016 / 22:34
0
answers

Transparent CheckOut Secure Pag: installment value invalid

I have in my OpenCart store the transparent checkout payment module I noticed that on rare occasions, a client could not make the payment by credit card. Today a customer came to the store and it happened again just when I applied any discount (...
asked by 22.09.2016 / 19:41
0
answers

Image Upload Error

I'm uploading image with object-oriented paradigm and I'm having a strange error: The upload is successful, the image is normally displayed on the site. All normal. But when I go in the folder I saved the images, although they are there, w...
asked by 28.09.2016 / 13:47
0
answers

Problems migrating a site in CakePHP between servers

I am trying to migrate the site between servers, however to validate the functioning of the site, I downloaded and I am trying to install in Wamp . I have no experience with framework Cake . I have already deleted the files in the...
asked by 27.09.2016 / 02:10