Posts by Vanderson Ramos • 414 points
10 posts
-
0
votes2
answers937
viewsA: How to add multiple date ranges as php
$data1 = new DateTime( '2013-12-11' ); $data2 = new DateTime( '1994-04-17' ); $intervalo = $data1->diff( $data2 ); echo "Intervalo é de {$intervalo->y} anos, {$intervalo->m} meses e…
-
1
votes2
answers64
viewsA: problem when showing wordpress category
Do it like this: <?php query_posts("category_name=SUA_CATEGORIA"); while(have_posts()) : the_post(); ?> <h1><a href="<?php the_permalink(); ?>"><?php the_title();…
-
2
votes0
answers57
viewsQ: Problema ao enviar email AWS
I have two domains, .com and .com.br, for the domain .com all the e-mails sent and received are all right. However if I send e-mail to the .com.br the e-mail turning back. For example,…
-
1
votes1
answer240
viewsA: 2 simple points in Google Maps
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Google Maps Multiple Markers</title> <script…
-
8
votes2
answers5459
viewsA: What are middleware in Nodejs?
When you create a route in your web application you free an area of your application for users to access via browser or other applications via some http client framework. When this route is…
-
0
votes2
answers302
viewsA: Check if field is equal to zero in the database
Try to do so, an IF. $sql = "select * from tabela where campo = 'sua variavel'; $sth = $db->prepare($sql); $sth->execute(); $record = $sth->fetch(); if ($sth->fetchColumn() > 0){…
phpanswered Vanderson Ramos 414 -
-1
votes2
answers320
viewsA: How to create Exception
include the import java.sql.SQLException See more here. -> http://www.tutorialspoint.com/jdbc/jdbc-exceptions.htm…
javaanswered Vanderson Ramos 414 -
3
votes2
answers5698
viewsA: Click on a link and print the landing page as soon as it opens
When you click "Print" call a function that redirects to another page, on the other page in the load, call the print function. On the page where you have the link with the text "Print" do this:…
javascriptanswered Vanderson Ramos 414 -
7
votes1
answer315
viewsQ: Django 'bool' Object has no attribute '_Committed'
I have a field of sorts FileField and when I try to delete the contents of it, returns me this error message: bool' Object has no attribute '_Committed' To make the upload works normally, the…
-
8
votes1
answer867
viewsQ: How to return to "waypoint_order" in the Google Directions API?
I’m developing a route mapping system using the Google Maps API. I have the points of origin and destination and between those points there are some points of interest. When plotting the route…