Questions tagged as 'php'

2
answers

Laravel 5.3 Trying to get property of non-object

Good morning! I followed what is said in this tutorial to fill values in a view: link And I did the same scheme on my controller: public function select_cursos_disciplinas() { $cursos = DB::table('select * from cursos'); $discipli...
asked by 03.11.2016 / 12:58
2
answers

Creating buffers in PHP

Personally I need to create a buffer (string) of a dataset (array) to send via socket. In this buffer I want all the attributes of the set that are stored in it, obey its size. Example: If I am going to store an integer value of the data...
asked by 27.07.2015 / 16:37
2
answers

Check if the login exists in jQuery before sending the form

I need to develop a system in which when filling in the client's registry, be checked if the registered email already exists in the database, and if it already exists, that inform the user (via Ajax) that it already has this and -mail, and other...
asked by 25.07.2015 / 04:22
1
answer

Higher value in an array in PHP

I have a problem finding the largest value of the product box width for the freight of a website I'm making. I put the product data with the size of the boxes in the database and I am now doing the calculations. I needed to add the weight and...
asked by 09.07.2015 / 21:06
1
answer

Search all websites

It is very common to find a search on sites that returns records from different tables. I need to implement a search on my site that returns produtos and usuários (profile) registered on the site. The result should be mix, but t...
asked by 28.07.2015 / 17:28
1
answer

PHP array of objects without access to get

I'm trying to access the getters that refer to an object, however this object is in an array, and by no means do you want to access them. Here is the class DAO (where you are giving the mess and I am doing test) and class VO: DAO: <?...
asked by 14.07.2015 / 05:08
2
answers

Send javascript object to php

I have the following class in php: class Corretor { private $id; private $nome; private $registro; private $email; private $senha; function __construct() {} /* Getters e Setters*/ } And in my html code, I have...
asked by 11.03.2015 / 16:11
2
answers

Catch the user's city with IP [duplicate]

I need to get the city the user is at the moment of access to the Site Control Panel. Why do I need this? I want to block access to the control panel only for my client's city, when it does not have fixed , if it does, I block access on...
asked by 11.08.2015 / 21:02
2
answers

Passage of variables to the view in CodeIgniter

I'm finding some problems to pass the result of a query in the model to the view in CodeIgniter. What would be the best way to do this? My query: $query = $this->db->query("SELECT * FROM crm.usuario limit 50"); And I want to m...
asked by 19.03.2015 / 17:52
2
answers

I can not configure the sqlsrv drivers in php7 [duplicate]

In the file php.ini all extensions are found, less the ones I need to connect to the SQL Server database. extension=php_sqlsrv_7_ts_x64.dll extension=php_pdo_sqlsrv_7_ts_x64.dll The .dll is in the C:\php7\ext. No...
asked by 04.01.2017 / 19:26