Welcome To Snipplr
Everyone's Recent MySQL Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
If the official codex approach (http://codex.wordpress.org/Changing_The_Site_URL) is causing you problems, give this a try. Be sure to change the constant declarations and modify table names as necessary for your instance. Confirmed working with WP v...
1
664
posted 13 years ago by johnandrewsroot
Some code I found for calculating and determining a persons age
1
412
posted 13 years ago by mpcircuitry
used to find content that uses the PHP input filter....useful for upgrading core!
0
552
posted 13 years ago by ReeceMarsland
Just updated for WP 3 (added wp_postmeta table for menus)! Test out the new installation thoroughly but everything should be fine, and your CMS should be running live on the new server!
0
471
posted 13 years ago by beneberle
- fields on db with utf8_general_ci collation
- make this query after any connection
- put meta charset utf8
- read and write strings without problems
0
469
posted 13 years ago by ginoplusio
Must have a field named Weight. The more Weight the more often the record is selected. Weight should be an integer between 1 and 10.
1
583
posted 13 years ago by BFTrick
MySQL Insert Unique Reference using MAX() to obtain latest value
Alternate solution to using Composite Primary Keys which INNODB engine does not support.
0
444
posted 13 years ago by cherbert
as a note to self... in order to find it laters...
This will only alter the value of fieldname if the conditions in the WHERE clause are met. With replace we only replace a certain string within fieldname with the replace_with string
1
492
posted 13 years ago by iroybot