Welcome To Snipplr

Everyone's Recent PHP Snippets Tagged update

« Prev 1 Next »
Update multiple fields using #ajax in Drupal 7 form
0 316 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 243 posted 6 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 678 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 293 posted 7 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 244 posted 8 years ago by barkgj
Update current field data.
0 234 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 269 posted 9 years ago by madc
0 194 posted 10 years ago by shinokada
0 151 posted 10 years ago by nosmk
0 192 posted 10 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 311 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 399 posted 11 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 224 posted 11 years ago by brownrl
More of a setQueryString
0 189 posted 11 years ago by iloveitaly
Very simple snippet to include if you want to auto update the year in a page copyright using PHP.
6 272 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 296 posted 12 years ago by simplistik
Way to update the footer of a website automatically on 1st Jan.
3 221 posted 14 years ago by 1man
« Prev 1 Next »