Questions tagged as 'php'

0
answers

Apache does not load PHP module

I'm following this article to configure Apache and PHP: Installing and Configuring the PHP Development Environment - Part 2 I've already set up the php.ini and link and the php5apache2_4.dll DLL is in its place, however it is retur...
asked by 24.09.2015 / 19:28
0
answers

Google API - Refresh Token

I'm trying to get a new access_token after it has expired. I already have in the database the information I get as a return on the client's first access:    {"access_token": "TOKEN", "refresh_token": "TOKEN", "token_type": "Bearer", "e...
asked by 28.09.2015 / 22:33
1
answer

Error receiving header on PHP server sent via http request

I'll be needing your help. My restfull client application is sending a header called 'Auth' with an authentication token for the PHP server. When I do the tests with a server running on localhost everything works fine. However, when I put the...
asked by 21.11.2015 / 08:22
1
answer

Persistence with Doctrine does not take data from the object to the insert

I started a new project in PHP where every database is with tables and their columns with different names of classes and their attributes. With the intention of gaining in the productivity of not being renamed I decided to apply Doctrine ORM...
asked by 20.11.2015 / 21:14
3
answers

No select error using mysqli_query

I've done a php to list the rooms, but I'm having difficulty listing them, if anyone can help me, I would appreciate it. <?php $link = mysqli_connect("localhost","root","","hotel"); $result = mysqli_query("SELECT descricao FROM quartos WHER...
asked by 08.06.2015 / 21:53
0
answers

Problem with foreach, laravel is not recognizing the model Indexes [closed]

Index Controller: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use View; use App\Indexes; use Illuminate\Support\Facades\DB; class IndexController extends...
asked by 20.11.2015 / 23:23
0
answers

Help with procedural MySQLi class migration to object-oriented

Hello, good afternoon. I started migrating a MySQLi class of procedural to Object Oriented and two functions of this class left me in doubt. During the migration of the fetchRow and fetch_array functions I was struck by a strong doubt,...
asked by 23.11.2015 / 20:21
1
answer

MySQL UPDATE function is editing right, but creates a new empty line at the end of the table [closed]

I'm breaking my head here, because the UPDATE function works fine when used purely by the terminal or the Workbench, but when I do the PHP code via HTML form parameters, it edits fine too, but creates a new line empty, and will create mor...
asked by 20.10.2015 / 22:42
0
answers

Insert data dynamically with xml the coordinates in the heat map

I'm trying to use this code to read data from the xml parts coordinates instead of the data statically inserted into the code but does not work when done this way. Code: function getPoints() { return [ //new google.maps.LatLn...
asked by 13.04.2016 / 21:52
2
answers

How to delete the first line of a megapesado SQL file?

I have a "mega-heavy" SQL file that does not open either in sublime, in notepad or in gedit. I just need to delete the first line Use nome_database; to be able to import through the workbench or mysql command line in the terminal: mys...
asked by 18.04.2016 / 19:41