Questions tagged as 'php'

1
answer

@yield does not display content

I'm learning Laravel 5.1, I ran into an error using @yield . I can not pass the contents of another file to the file where I want to include it. Next I have the content I want to insert into the default-home.blade.php file inside...
asked by 24.07.2015 / 02:16
3
answers

Return the id of a table in another table

I have a clients table containing CLIENT_ID, CLIENT_NAME, and another table containing CLIENT_APROVED. The approval table is populated with SOME clients of the clients table but only the NAMES of the clients. I wanted to replace the name with...
asked by 03.07.2015 / 19:41
1
answer

contact form with Laravel 5.1

I need to create a simple contact form with laravel 5.1, however, as I am more of a front-end, I would like some idea of what I can do to create this form, some websites even explain how it is done, but it is not with the current version of lara...
asked by 05.07.2015 / 22:57
1
answer

pass variables from AJAX to PHP

I'm trying to pass values through two variables in AJAX to a PHP file, but it's not working. if I put date: {idUsuario: "5", idChoose: "1",} sure. What is wrong? $(document).ready(function(){ $("#botao").click(function(){ var u...
asked by 24.10.2015 / 23:45
1
answer

Trigger an error with trigger_error or Exception in a different scope

Assuming I have a function in a file called foo.php: <?php function foo() { trigger_error('Olá mundo!', E_USER_ERROR); } And in the index.php file I would use this: <?php require 'foo.php'; //Chamando erro foo(); It will iss...
asked by 26.10.2015 / 20:35
1
answer

Why does the index () method not recognize the [CI] redirect?

I'm following a course and stopped at a problem I can not solve. In this link it is possible to register a user and when finishing the registration he should go to this one page but the only thing that happens is a 404 error. routes....
asked by 24.10.2015 / 20:39
2
answers

How to remove level 1 keys using only one Callback method

I do not want to use foreach and for . For example, I have the following array structure: Array ( [0] => Array ( [0] => Array ( [id_usuario] => 1 )...
asked by 27.10.2015 / 20:24
1
answer

Sort Birthdays per Day

Well, I needed some help to display the Birthdays of the Month sorted by the day, in the bank it pulls the information from the Senior so the date comes ex: 1970-10-30, in my controller it looks like this: public function index() { $condi...
asked by 01.10.2015 / 16:25
1
answer

PHP client data list in JSON

Good afternoon guys, Well I have a CRUD in PHP and I need to have the registered clients shown in another URL in JSON But I've been a bit weak in PHP, I have no idea how to do this with data coming from a query in the DB, does anyone know...
asked by 04.10.2015 / 01:22
1
answer

How to traverse all the records in the database table?

Good afternoon, guys! I'm starting in PHP and I already had a problem. It is as follows: I need to go through all records in the bank table so that I can validate if that value already exists. I'm using Codeigniter and did the following plus...
asked by 05.10.2015 / 19:38