Questions tagged as 'php'

3
answers

Get data in Mysql DB using AJAX / PHP to create a badge containing the DB item count [closed]

I need to get a count of items in my Mysql DB using ajax and php. My ajax looks like this: <code> $(document).ready(function(){ $('#badgewel').empty(); //Limpa a tabela $.ajax({ type:'get', //método HTTP usado...
asked by 08.07.2016 / 05:43
1
answer

Php does not connect to the database (MySQL)

So I recently started with php and I tried to make a simple crud with php + mysql but I had a problem that I believe to be connecting to mysql. when loading the action in html, the page is left blank. It does not return error or insert into the d...
asked by 10.07.2016 / 05:48
2
answers

MethodNotAllowedHttpException in RouteCollection.php - Laravel 5.2

Developing an application using Laravel 5.2, PHP7.0, Apache2 and CentOS 7, I'm having the following error: MethodNotAllowedHttpException . On the local server it works normally ... when I publish to the production server the error occurs, it...
asked by 19.06.2016 / 22:40
1
answer

Bring selected based on database values

Ihaveanemployeeregistrationscreen,whenIeditapersonIcannotgetsettheoptionthatisregisteredinthebank.obs.theoptionscomefromthebankandnotfromthehtmlform.ForexampleIhaveapersonwhoisregisteredas"sales" plus when I edit it list as "accounting" which w...
asked by 18.06.2016 / 00:17
2
answers

Update table attribute, via Form? php $ PHP_SELF?

I tried to make a code here, but it did not work very well ... can you tell me where the error is? <? if(isset($_POST['reseta_wl'])) { $dbhost = '127.0.0.1'; $dbuser = 'root'; $dbpass = ''; $conn = mysq...
asked by 18.06.2016 / 15:50
1
answer

Request digital certificate and sign a string on a php web site [closed]

I'm developing a web site for my TCC in php , and I'm stuck: My application will need to request a digital certificate, which can be the .cer file or load from the user's repository and sign a string without using Java...
asked by 01.12.2016 / 14:38
4
answers

How to transform a string into an object? [closed]

I have the following String : $exp = "(10-9)+(7-6)"; Let's assume that I process this String and is able to return the following result in the String format: $exp = "new Expressao( new Expressao(new Numero(10),new Operador('-'),ne...
asked by 05.12.2016 / 22:20
1
answer

How to use variables in view in laravel 5

I'm developing a project of "borrowing" things from a company and I'm locked in a key module. So I do not have much experience in laravel, so I came across the following situation: Database - I have a LOCAL table that correlates with multip...
asked by 20.06.2016 / 23:53
1
answer

No Repeat Values

I'm using google maps api and I'm kind of a layman in js. My map displayed markers and on each marker I will display an infowindow or an information balloon. The code below is doing this, but is repeating Array values, how do I display the speci...
asked by 25.11.2016 / 13:07
1
answer

How to change Wordpress .htaccess via FTP

I need to make changes to the .htacces of my wordpress, but I think the file I found is not the correct one. Does anyone know where .htaccess is that change the pages of wordpress?     
asked by 21.12.2016 / 20:36