All Questions

1
answer

Call JS function within modal

I have an event where a modal is displayed, in it I want to call a function validateEmail but I can not. validateEmail: function(email) { var re = /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@((\[[0...
asked on 23.02.2015 / 18:24
1
answer

Problem with dynamic UPDATE in PDO

I'm creating a CRUD dynamic in pdo , where I get several parameters inside an array, and inside this array there can be several other arrays. The problem is when I'm mounting SQL. I asked a similar question here , but the solution was not...
asked on 14.12.2015 / 18:58
1
answer

Return various attributes using XPATH

How can I return multiple attributes using the xpath language? For example of this xml: <utilizador> <nome>Rui</nome> <contacto>91xxxxxxx</contacto> <localidade>Viseu</localidade&g...
asked on 26.02.2015 / 19:18
1
answer

Change part of the text of a label

I have the following label created by a plugin <label> Buscar: <input type="search" class="form-control input-sm" placeholder="" aria-controls="Pedidos"> </label> What I want to do is just change the "Search" for something...
asked on 06.03.2015 / 14:55
2
answers

PHP search system without MySQL

I have a website with several HTML files, and I want to do a search engine in PHP, search for words in those HTML files, and show me the page or pages where they find themselves without using MySQL. How can I do this?     
asked on 30.03.2015 / 22:47
1
answer

Traits do not accept overrides of properties?

According to the PHP Manual excerpt    A Trait is intended to reduce some simple inheritance limitations by allowing a developer to freely reuse sets of methods ... See an example: trait Stack { protected $items = []; public fu...
asked on 24.02.2015 / 16:35
1
answer

How to insert external CSS in Codeigniter 3

I would like to know how to insert an external css file into a Codeigniter 3 view. I configured the $ autoload ['helper'] = array ('url'); I tried calling in the following ways: <link rel="stylesheet" type="text/css" href="<?=site_url(...
asked on 05.12.2015 / 22:49
1
answer

C ++ exponentiation operator

About a question recently posted and answered Is there any reason - historical or not - for C ++ (as well as many other programming languages) not to include an operator for exponentiation? For example, when I want to calculate 5 to 7.2 I ha...
asked on 11.12.2015 / 23:06
3
answers

Method inside NLTK in python that returns a syntax tree

I'm using the NLTK Forest library and I saw there some parse (parse tree) sentences already created. However, I would like a method that from a new sentence it creates the parse in Portuguese. Examples: I use it today floresta.parsed_sents(...
asked on 29.11.2015 / 13:55
1
answer

How to do ascending and descending listing in records with PHP

My table looks like this ThroughPHP,IamlistingMYSQLdatabaserecordswithinaWHILELOOP.Iwouldliketoknowhowtodothissothat,byclickingonID,or,DATA,thedatawillbedisplayedinascendingordescendingorder.SCRIPTPHP:<?php$strSQL="SELECT * FROM TABELA ORDER...
asked on 18.12.2015 / 19:26