Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged update



« Prev 1 Next »
Update multiple fields using #ajax in Drupal 7 form
0 421 posted 4 years ago by guruparthi
Add the code below to change the Home & Site URL that is configured in the database (wp-options table) by WordPress. Whenever you copy/move a site to a new hosting and the URL has changed you can use the code below to fix any strange redirects that m...
0 346 posted 7 years ago by 108Bits
Aspose.PDF for Cloud API has released PHP SDK which allows PHP developers to convert PDF files uploaded to a remote server to other formats. You can pass URL and format parameters to specify the PDF’s URL and output format and use the PUT method of...
0 859 posted 7 years ago by johansonkatherine
Open your function.php of your active Theme. Copy your code insert and call the new Site URL. After delete the code snippet.
0 404 posted 8 years ago by WMSchneider
This snippet shows how to retrieve information from the SEO plugin of Yoast, to be used for front-end use. This snippet is taken from the opensource free Nexus WP framework supporting front-end editing, custom layout and drag & drop.
0 336 posted 8 years ago by barkgj
Update current field data.
0 321 posted 8 years ago by tucq88
Serverside script for a personal DynDNS service. Works together with a clientside script written in ruby [ http://snipplr.com/view/55484/own-dyndns-service-clientside-script/ ] . Redirect to current saved IP(http, port 80): http://dynDns.yourver...
0 357 posted 10 years ago by madc
0 260 posted 10 years ago by shinokada
0 219 posted 10 years ago by nosmk
0 278 posted 11 years ago by jaredyeo
Drupal allows hook_update_N to run any sort of code. Most of the time, however, people only use this to alter the database scheme. But you can use it for much more. Like setting variables, creating nodes, importing views and so on. This code show...
2 418 posted 11 years ago by berkes
This snippet allows you to update multiple rows of a database using a single form in one easy click
0 523 posted 12 years ago by daveismyname
Here is a small function that I use to update records in a database. It coincides with the insertFromPost function that I have posted earlier. The element names in the form need to have the same name as in the DB and the field names should all...
1 317 posted 12 years ago by brownrl
More of a setQueryString
0 274 posted 12 years ago by iloveitaly
Very simple snippet to include if you want to auto update the year in a page copyright using PHP.
6 378 posted 12 years ago by 1man
Allows you preserve and update a query string and it's existing values easily, instead of constantly appending the new value to the end of the query string
1 388 posted 13 years ago by simplistik
Way to update the footer of a website automatically on 1st Jan.
3 309 posted 14 years ago by 1man
« Prev 1 Next »