Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 71 72 73 74 75 ... 147
The script below connects to a MySQL database server on "localhost" using the login name "test" and password "123456" and then connects to the database "test". It then copies the table structure and data from the table "products" to a new table "prod...
4 1022 posted 13 years ago by fackz
0 488 posted 13 years ago by newsok
0 492 posted 13 years ago by newsok
0 464 posted 13 years ago by newsok
0 704 posted 13 years ago by newsok
Open your search.php file and find the the_title() function. Replace it with the following: 1.echo $title; Save the search.php file and open style.css. Append the following line to it: strong.search-excerpt { background: yellow; }
0 604 posted 13 years ago by newsok
0 708 posted 13 years ago by newsok
This code war written for a project I'm working on where a map of the world may need to be offset to center the view on specific areas. I'm also using it as a part of an iterative blur function to prevent seams from the blur operation. I would lik...
0 623 posted 13 years ago by Jamie
Existen varias formas para hacerlo, pero lo que dejo aquí es a lo que tenemos que acostumbrarnos a hacer cada vez que programemos para prevenir que se pueda inyectar HTML o modificar las consultas SQL.\r\n\r\nThere are several ways to do it, but wha...
0 426 posted 13 years ago by arucordoba
1 564 posted 13 years ago by sybrex
1 595 posted 13 years ago by sybrex
1 816 posted 13 years ago by mloberg
Useful for displaying copyright notices on a website.
0 707 posted 13 years ago by f6design
A Twitter pull-in that I coded using PHP. Uses the JSON user_timeline Twitter API call. It displays the tweet with links to any urls, users, or hashtags, the time ago, and if it was in reply to anyone.
2 835 posted 13 years ago by mloberg
I need to create a new template that just show the photo ordered by «department» and «title». It should also include an hidden <DIV> with full name, email, social links and bio.
0 308 posted 13 years ago by ipublicis
Script to send mails with Swift Mailer
0 614 posted 13 years ago by juanchifc
This is a very simple use of the Vimeo API. All it does is list the video title, a thumbnail of the video, and the description. More advance script coming later.
0 602 posted 13 years ago by mloberg
2 686 posted 13 years ago by mloberg
Following sql statement collect product sku with store url select catalog_product_entity.sku,catalog_product_entity_varchar.value from catalog_product_entity,catalog_product_entity_varchar where catalog_product_entity_varchar.attribute_id=87 an...
0 775 posted 13 years ago by aashvi
0 596 posted 13 years ago by stz184
1 636 posted 13 years ago by MrFjords
I’ve made this function that receive the input $video string that contains the dirty embed code as it is from youtube. The second parameter $new_width (if specified) permits to resize the embed code proportionally to the width you need for your tem...
0 1042 posted 13 years ago by ginoplusio
A simple set of conditions to get dynamic title tags in a wordpress template.
0 546 posted 13 years ago by jhonqwerty
0 406 posted 13 years ago by jmaties
1 ... 71 72 73 74 75 ... 147