Questions tagged as 'php'

1
answer

How can I connect a view and a controller [closed]

Context I'm learning symfony2 ?     
asked by 15.03.2016 / 09:29
2
answers

round to two decimals

I'm doing a query in laravel to bring me a sum according to the field I'm calling, my problem is that I make a conversion to get the average and I need to round to two decimals, and use the function round for me to round to two decimals b...
asked by 06.04.2018 / 00:31
2
answers

Use a php variable within a function with str_replace

What I need is to replace what is in the variable ($ code) with (cars). For that I use a function with name (remove) using str_replace, the problem is that within the function remove does not recognize the variable ($ code) when I call the fu...
asked by 18.09.2018 / 17:06
2
answers

Cut Name substr ()

I have the following names saved with last name + name in a database GONZALEZ PEREZ JUAN GABRIEL in a report I just want to show the names of them. For Juan, it would be like that JUAN GABRIEL How could you do it using substr...
asked by 31.08.2018 / 17:47
4
answers

Error with PHP's RETURN function - Post [updated]

I have a problem with a function that I'm doing since it only gives me the primary data of the table and not a list NOTA: if it works with the echo but it comes out at the top of the site and what I want is that it works with re...
asked by 26.05.2018 / 23:34
4
answers

What is the difference between these two symbols in php - y =

I would like to know the difference between these two symbols - > y = > in php     
asked by 16.04.2017 / 19:58
3
answers

Doubt PHP Form [closed]

Hello to the whole community, I have a simple doubt, what is better to put the PHP code of a form within the same form or create another file where is the PHP code that will process the form?     
asked by 25.10.2016 / 06:59
4
answers

Include html / php content from another file

I'm working on a simple web without a framework, and this website should have a header and a footer on all pages, it's 3, the thing is I do not want to be copying that footer and that header all the time in each of the pages with which I wou...
asked by 18.10.2016 / 09:40
2
answers

how to validate that php is working on debian 8?

I just installed debian on my computer to use it as a server and I have installed php, mysql and phpmyadmin but I do not know how to validate that if I install them well since the interface is by means of commands, so I would like to know what c...
asked by 26.10.2016 / 19:06
4
answers

What is the best way to include classes in php?

What is the best way to use classes in php? That is, you can do a include ("clase.php"); or I guess it will also work with a require_once("clase.php"); I do not know if there are more ways or I know what is the best way to use it, o...
asked by 28.10.2016 / 15:39