This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php_value date.timezone UTC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# La siguiente consulta añade un campo numerado a una consulta: | |
set @num=0; | |
select id, @num:=@num+1 AS contando FROM tabla; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO clientes_peticiones ( | |
id_cliente,fecha,peticiones | |
) VALUES ( | |
1,'2011-11-02',1 | |
) ON DUPLICATE KEY UPDATE peticiones = peticiones+1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$dom = new DOMDocument("1.0","utf-8"); | |
$elemento = $dom->createElement("elemento"); | |
$dom->appendChild($elemento); | |
$xml = $dom->saveXML(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.text_ellipsis{ | |
white-space: nowrap; | |
text-overflow: ellipsis; | |
overflow-x: hidden; | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#"+formid).find("input[name^='losqempiecenpor']").each(function () { | |
var $element = $(this); | |
$element.rules('add', { required: true, maxlength:30 }); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.objeto_animado{ | |
-webkit-animation-name: escala; | |
-webkit-animation-duration: 0.6s; | |
-webkit-animation-iteration-count:1; | |
-ms-animation-name: escala; | |
-ms-animation-duration: 0.6s; | |
-ms-animation-iteration-count:1; | |
-moz-animation-name: escala; | |
-moz-animation-duration: 0.6s; | |
-moz-animation-iteration-count:1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION CAP_FIRST (input VARCHAR(255)) | |
RETURNS VARCHAR(255) | |
DETERMINISTIC | |
BEGIN | |
DECLARE len INT; | |
DECLARE i INT; |
OlderNewer