Search & Replace
update tablename set field = replace(field,'search_for_this','replace_with_this');
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
Sasha http://nothing-less.net
update tablename set field = replace(field,'search_for_this','replace_with_this');
sudo sysctl -w kern.maxfiles=22000 sudo sysctl -w kern.maxfilesperproc=20000
© Copyright 2004 - <?php echo date("Y") ?>
<?php $nextmonth = mktime(0, 0, 0, date("m")+1, 1, date("Y")); echo date("F", $nextmonth); ?>
{exp:stats weblog="weblog1"}{total_entries}{/exp:stats}
{entry_date format="%F %d, %Y"} {edit_date format="%F %d, %Y"}
<? $set_table="0"; ?> <table cellpadding="5" border="0"> {exp:gallery:categories gallery="{gallery_name}"} <? $fs_table = $set_table +1; if ($set_table == "1") {echo"<tr>";} ?> Insert other tags here. <? if ($set_table == "2") {echo"</tr>"; $set_table="0";} ?> {/exp:gallery:categories} </table>
$today = date("F j, Y");
{exp:allow_eecode}{body}{/exp:allow_eecode}
<p>Bla bla regular entry text</p> {exp:allowphp} echo "This will be processed as PHP."; {/exp:allowphp}
<? $fs_refer= $_SERVER ['REQUEST_URI']; $fs_refer = explode("?", $fs_refer); echo "$fs_refer[0] is now a URL without ?.<br />"; echo "$fs_refer[1] is the bit that used to follow the ?."; ?>