Posts by Sam • 115 points
21 posts
-
0
votes2
answers519
viewsA: Passing Parameter in URL using JSON + AJAX
function desenhaGraficoPagamentos(){ var jsonData = $.ajax({ url: "getPagamentosMaioresQue.php", dataType: "json", async: false, data: valor, }).responseText; add the date property in $.ajax where…
-
0
votes1
answer56
viewsQ: Infiniti Scroll with firebase and Ionic
Guys I’m here in a pinch, I’m using firebase v3.2.1 and I’m trying to implement an Infinity Scroll with Ionic, the point is that I don’t know how to do, I googled and found a firebaseUtils library…
-
1
votes3
answers663
viewsQ: Keep selected option dynamically loaded
I need to keep the option chosen in the combobox after the page is submitted, I have a function that does this, but only for Estaticas combobox, for dynamic combobox it does not work. I’m already…
-
0
votes3
answers2402
viewsA: To assign the chosen value in a select (HTML) to a php variable
A possible solution would be to create a function that always selects the chosen value whenever the form is submitted see this example function selected($value, $selected) { return $value ==…
-
1
votes1
answer142
viewsQ: Fill in Select with optiongroup
I intend to create a multiple select like that What I managed to do was this What I want is to group all the records of the same group, as this organized in the plugin See the code here My json…
-
0
votes1
answer197
viewsA: Entity manager no definaty problems with Doctrine
I was able to solve the problem by reconfiguring Doctrine. I finished the documentation at this link I just followed the steps..…
-
2
votes1
answer197
viewsQ: Entity manager no definaty problems with Doctrine
I’m having trouble with Doctrine when I try to generate entities it sends me a message saying **[InvalidArgumentException] The helper "em" is not defined.** my configuration file is set this way //…
-
1
votes1
answer131
viewsA: Doctrine’s findAll method returns the same id on all lines
I solved it, the problem was in the Doctrine notes was this way /** * @var boolean * * @ORM\Column(name="id", type="boolean", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */…
-
0
votes1
answer131
viewsQ: Doctrine’s findAll method returns the same id on all lines
I am doing a search that returns all the data of my Entity., it happens that it returns me all the data but with the same id, but I checked the database the ids are different..…
-
1
votes1
answer83
viewsA: Problems persisting data in Doctrine
I changed the setting for Entity manager this way setting the settings previously defined $config = Setup::createAnnotationMetadataConfiguration($entidades, $isDevMode, NULL, NULL, FALSE);…
-
0
votes1
answer83
viewsQ: Problems persisting data in Doctrine
I am doing this: function Autenticar($objecto) { //require $this->db; require ROOT . "config/bootstrap.php"; return $entityManager->getRepository('models\Usuarios')->findOneBy(array('login'…
-
1
votes3
answers545
viewsA: autoload in classes using mvc
I Googled and found the Solution if (is_readable($caminho)) { require $caminho; $controlador = ucfirst($controller); //Adicionei a linha abaixo $namespace = "\\" . "controllers" . "\\" .…
-
-2
votes3
answers545
viewsQ: autoload in classes using mvc
You can do this in php use COntroller; class Bootstrapp(){ public static function logar(){ $controller=new \Controller\$controlador(); } I’ve tried it here and the syntax error down here the code if…
-
0
votes1
answer968
viewsQ: connect AD via php and ssl
I am trying to connect my php application for authentication with Active Directory from Windows Server 2003, using ssl hold authentication. but it n connects returns this error PHP Warning:…
-
1
votes1
answer380
viewsA: Search users in AD using the adldap class in php
See if it works <?php $adldap = new adLDAP(); $data = new DateTime(); try { $adldap->authenticate("$usuario", "$senha"); } catch(adLDAPException $e) { echo $e; exit(); } $result =…
-
1
votes1
answer380
viewsQ: Search users in AD using the adldap class in php
You can list AD users using the adldap.. class in php try { $adldap = new adLDAP(); } catch (adLDAPException $e) { echo $e; exit(); } $username = $_POST['nome']; $password = $_POST['senha'];…
-
0
votes1
answer324
viewsQ: File opening via Load jquery method
I don’t even know where to start! I’m trying to create an administration page, where the data has to be sent via $.post and receive via $.get, but when I try to read the php file where the script…
-
0
votes2
answers513
viewsA: Create jquery navigation menu load method
After reading and searching here on the forum, I found a solution Function abreURL(url,method,where){ if(metodo=='POST'){ // metodo post $. post(url, Function(date) { // loader page (loading)…
-
1
votes2
answers513
viewsQ: Create jquery navigation menu load method
I’m having a hard time creating a menu where pages are loaded into a div. What happens is that I’m creating an application following the MVC standard, and I do the treatments of the Urls to redirect…
-
1
votes2
answers1996
viewsQ: Query PHP data using the $.get json method and list data in an html
I can do data entry but have no idea how to do data selection on a HTML using $.get JSON. Php code public function Inserir($tabela,$sql){ ksort($sql); $Campos_nome= implode('`, `',…
-
3
votes1
answer576
viewsQ: Error making dynamic PHP Insert
The code that is causing the error: public function Inserir($tabela,$sql){ ksort($sql); $Campos_nome= implode('`, `', array_keys($sql)); $Campos_valor= ': '. implode(', :', array_keys($sql));…