Questions tagged as 'php'

2
answers

Multiple image file

There I come to you for help novalmente! I created a function to register images in the database, one of them being the cover and the rest of the album images. The script even registers the cover image and album, but the album is only registe...
asked by 18.09.2015 / 22:00
1
answer

Release subdirectory through .htaccess [duplicate]

How do I release a specific sub directory (and all of its files) via .htaccess? As I use "friendly url" and through .htaccess I block everything that is not convenient, I would like to know how to "free" access to a specific folder a...
asked by 22.05.2015 / 04:11
3
answers

How to feed an input with a get variable in php

Hello everyone, I hope so, I have a relatively simple question, what I am wanting is to use a file to do insert and also change in php referring to the insertion is traquilo, well what I would like would be to assign the values that I pass via...
asked by 20.05.2015 / 06:59
1
answer

Error in variable value

I have the following doubt, I have to add a set of values that are set to string's , so I had to convert to float , I used the function str_replace() , except that when testing the variable with var_dump and perform the...
asked by 07.05.2015 / 03:53
1
answer

Load dynamic data into javascript

I'm trying to load dynamic data from DB, but it does not appear. $(function () { var divContent = $('#formularioVeiculo'); var botaoAdicionar = $('a[data-id="1"]'); var i = 1; //Ao clicar em adicionar ele cria uma linha com no...
asked by 12.05.2015 / 23:37
1
answer

Problems with SELECT option with PDO

Friends re-edited the PDO connection below: <?php $conn = new PDO( 'mysql:host=localhost;dbname=pbfjacar_site' , 'pbfjacar_murilo' , 'smc100164' ); $stmt = $conn-> prepare('SELECT font FROM fontes'); $stmt-> execute(); $result = $stmt...
asked by 10.05.2015 / 03:17
1
answer

How to get JQuery value and pass to PHP [duplicate]

I know the question may have already been asked, but in no case has it solved the problem I have, I need to get the value of a JQuery variable and pass it to one in PHP, the variable in JQuery is being created like this: // Gerando números p...
asked by 12.05.2015 / 18:15
1
answer

Split two-dimensional array into 2 simple arrays - PHP

I'm making adaptations in an old system and need to create a new routine to split a two-dimensional array into 2 simple arrays. Let's say that the variable $query receives the array below: $query = array("SELECT * FROM teste WHERE no...
asked by 22.04.2015 / 19:21
1
answer

Get information from user $ _SERVER via socket

I'm using new WebSocket to develop my applications and I need to somehow have access to these connection variables I'm getting through sockets over PHP, is there a way to do this or is it not possible? $_SERVER['HTTP_ACCEPT'] $_SERVER[...
asked by 24.04.2015 / 22:20
1
answer

Table structure for PHP friendship systems

I am developing a friends system in my system and would like to know how best to organize the table that will take care of such records amigos : I've thought of something like this: Tabela "amigos" (apenas 3 colunas) -----------------...
asked by 25.04.2015 / 17:46