Questions tagged as 'php'

2
answers

How to create dynamic columns with Bootstrap and PHP?

I have 30 itens that will come in alphabetical order. I need to distribute these items in 3 columns in alphabetical order VERTICAL . The problem is that in Bootstrap , the blocks will marry next to each other causing the...
asked by 12.01.2016 / 21:03
1
answer

use of the php opening tag? =? [duplicate]

Can the opening tag <?= ?> be used in large syntaxes? Or just in simple print syntax like: <?= 'meu nome é xxxxxxxx' ?>     
asked by 08.01.2016 / 16:44
1
answer

How to remove a variable from $ _SERVER ['REQUEST_URI']?

The variable $_SERVER['REQUEST_URI'] shows this    search.php? page = 6 & animal_type = Cat But what I intended was to get    search.php? animal_type = Cat What would be to remove the variable page What I need is to bring...
asked by 24.02.2016 / 18:50
2
answers

Get names of a form in a php page and put it in a select type list on another php page [closed]

I have 2 pages cadastrar_loja.php and cadastra_documento.php . In cadastrar_loja.php there is a text field named Nome da loja , I would like to get that name from the database, and insert it into a <select>...
asked by 25.01.2016 / 19:44
1
answer

How to end the user session if this page is closed?

When the user logs in, this user goes through the following checks on all pages: if(!isset($_SESSION['start_login'])) { // se não tiver pego tempo que logou $_SESSION['start_login'] = time(); //pega tempo que logou // adiciona 30 segundos ao t...
asked by 26.02.2016 / 21:26
2
answers

Dependent register taking ID of the respective employee with laravel 5.2

My problem is that when registering a new dependent the input, which has the ID of the employee to which the dependent will be related, is automatically filled with the given user ID and not that the person who is registering must enter the id o...
asked by 06.10.2016 / 18:05
1
answer

An Exception PDO occurs when localhost is used as host

Consider the following adapter class DbAdapterMySQL that extends the class PDO : class DbAdapterMySQL extends \PDO implements DbInterface { public function __construct(array $config) { $dsn = "mysql:dbname={$confi...
asked by 29.02.2016 / 16:22
2
answers

diff, date_diff, abs - Calculating dates in PHP

Good afternoon everyone, there are Javascript Plugins as in PHP for calculating dates, I as I did not know how to calculate durations in PHP opted to do this work in the same javascript and post the already calculated result. I recently research...
asked by 07.10.2016 / 22:43
3
answers

Local communication through online application

I am developing a system for ordering from a snack bar / pizzeria. Let's suppose that the waiter places the order with the Tablet ( Android ) on the customer's desk or the customer goes and requests the receipt ( Windows ). Depending on the requ...
asked by 09.10.2016 / 01:23
1
answer

How to pass a parameter / variable at startup of a PHP class?

How do I initialize a PHP class by passing a parameter at the same time. Same as PDO that is initialized by passing parameters as data for the connection to the database. In my case I want to simply pass an ID on startup. Ex: $user = new Us...
asked by 28.02.2017 / 16:06