Questions tagged as 'php'

2
answers

Problem accessing a One to Many relationship in Laravel

My Product model has the following relationship: public function categoria(){ return $this->belongsTo('estoque\Categoria'); } and my model Category has: public function produtos(){ return $this->hasMany('estoque\Produto'...
asked by 24.10.2015 / 17:04
1
answer

Importing PDF Data into PHP

It may be a bit of a beast, but I still have to do it: Is it possible to import data from a file into pdf into php and save to mysql ?     
asked by 21.01.2016 / 14:04
2
answers

Error in php data return on ionic

I'm doing an ionic app in which I put the zip in a field and the backend returns all other data, such as state, city, street ... But something strange happens, it returns the entire structure of php and not the data that should come. I did a tes...
asked by 26.01.2016 / 12:24
1
answer

How to make a query to a web api, passing parameters using angularJS?

I have the current script: (function () { 'use strict'; var numeros = angular.module("myModule", []) .controller("myController", function ($scope, $http, $log) { var sucessoCalBack = function (response) {...
asked by 09.01.2016 / 04:07
2
answers

Use Syntax Does alternative change performance? [duplicate]

Using the Alternative Syntax for Control Structures brings huge changes in the number of code lines of a project, but is there any change in performance?     
asked by 21.01.2016 / 19:44
1
answer

how to use the foreach

Hello, I'm here to ask for the help of your friends. I have this code below to list all the products and to be registered, but I am not able to list them on the same page using the foreach. Would my friends give me a hint of where I'm going wron...
asked by 30.08.2015 / 20:07
1
answer

from sql server to mysql with php

I have a SqlServer database and need, via php script, to send the data from a table to a MySql database. Will OPENQUERY result within the condition I have (php script)? How best to do this? The code I use to connect banks: Sql...
asked by 20.08.2015 / 14:09
1
answer

Structure for PHP project and use of the eval () function

I need to develop an application that fits with several projects with common features, however each one has several specific rules. What I need is a structure that allows me to easily change these rules, in case I chose to save the rules in t...
asked by 03.08.2015 / 18:10
2
answers

Problem with multi editor in Wordpress

I'm using multiple editors in a custom post type , but the qTranslate plugin adds the language tabs only in the default Wordpress editor and in the others it does not and along with it a bug in the tab that does not allow switching...
asked by 05.02.2014 / 14:15
3
answers

How to convert String to INT in the following situation :?

Can you help me understand what's going on? Why after the conversion is it printing ZERO? Is there any way I can be popping the var with a javascript function to detect the resolution ??? <?php $largura = "<script type =text/javascrip...
asked by 14.12.2017 / 20:25