This file contains hidden or 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
| UPDATE wp_posts | |
| SET | |
| post_content = REPLACE (post_content, 'http://localhost/tusitio.com.mx', 'http://www.tusitio.com.mx') | |
| WHERE post_content LIKE '%http://localhost/tusitio.com.mx%'; | |
| UPDATE wp_posts | |
| SET | |
| guid = REPLACE (guid, 'http://localhost/tusitio.com.mx', 'http://www.tusitio.com.mx') | |
| WHERE guid LIKE '%http://localhost/tusitio.com.mx%'; |
This file contains hidden or 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
| jQuery('.solo_numeros').keyup(function(e){ | |
| if (/\D/g.test(this.value)){this.value = this.value.replace(/\D/g, '');} | |
| }); |
This file contains hidden or 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 | |
| $dsn = 'mysql:host=XXXX.XXXX.XXXX.XXXX;dbname=DBNAME'; | |
| $nombre_usuario = 'dbuser'; | |
| $password = 'dbpass'; | |
| $opciones = array( | |
| PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8', | |
| ); | |
| $pdo = new PDO($dsn, $nombre_usuario, $password, $opciones); | |
| ?> |
This file contains hidden or 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
| jQuery.fn.center = function () { | |
| this.css("position","absolute"); | |
| this.css("top", Math.max(0, ((jQuery(window).height() - jQuery(this).outerHeight()) / 2) + jQuery(window).scrollTop()) + "px"); | |
| this.css("left", Math.max(0, ((jQuery(window).width() - jQuery(this).outerWidth()) / 2) + jQuery(window).scrollLeft()) + "px"); | |
| return this; |
NewerOlder