Posts by Daniel Ribeiro • 339 points
8 posts
-
0
votes4
answers958
viewsA: How to display information (domain name) using PHP?
Here is an object-oriented suggestion. php domains. class Dominios { const BRASIL = "http://meusite.com.br"; const MEXICO = "http://meusite.com.mx"; const ARGENTINA = "http://meusite.com.ar"; public…
phpanswered Daniel Ribeiro 339 -
8
votes1
answer60
viewsA: Problem with javascript open
An argument is missing from your function call. The function waits window.open(URL,name,specs,replace) and you’re passing only 3 arguments, so your second argument 'height=320, width=320' is being…
javascriptanswered Daniel Ribeiro 339 -
3
votes2
answers13354
viewsA: How to take the value dynamically from a select
JS file $("select").change(function(){ //Evento quando o elemento select é alterado. $.ajax({ url: "filtrar.php", //Página que fará a busca no banco de dados type: 'POST', data: { filtro:…
-
2
votes2
answers111
viewsA: Treating bank search dates
The problem is that the function date() this recital m/d/Y(American date format), so when you pass 25/12/2014, the day 25 is actually considered as month 25, as month 25 does not exist the function…
-
0
votes1
answer985
viewsA: Save information from a form
By include in the file validasessao.php upstairs, I assume you already have a session started, if not, put a session_start() at the beginning of the code. #localizar a avaliação…
-
1
votes2
answers373
viewsA: Opening dialog() not working
Using your basic jsfiddle I made some modifications. I believe I have understood correctly what you want. I put the remove() outside the successfrom AJAX for you to see working, then just put it…
-
2
votes2
answers736
viewsA: PDO::rowCount() returning -1
Based on the link @bfavaretto sent me, I managed to come up with a solution, follows. On the line where the prepare() is defined, the following parameter should be added array(PDO::ATTR_CURSOR =>…
-
4
votes2
answers736
viewsQ: PDO::rowCount() returning -1
I have this routine below, which used without problems with a Mysql database. However I had to migrate to a SQL Server 2008 database, which was simple. The only problem is, I don’t know why mine…