var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Run preg_replace function on a db column - add the result to another column -Easy job
I need someone to apply the following function on some Text in one tabel column and add the result of the function to another column in the database tabel.
$variable = preg_replace('/[^a-z0-9]/', '', strToLower($variable));
(ofcourse if you have another method feel free to use that, I just know that this function will do what I want
The function simply removes any spaces and objects not being normal letters and numbers, and at the same time make any capitalized letters small.
So if the original text would look like:
"Hello:# mY - 'FriEnd"
the result would be:
The database have alot of entries, perhaps 10.000+ but guess it doesnt mather if you make some sort of script to do the job.
I will supply you with the .sql file.
I should also easily be able to add the updated .sql file - with the function applied to the database again.
Im willing to pay someone $10-15 to do this via Paypal. Should be an easy task.
This sort of thing is probably best done by querying the datbase in realtime, not exporting a DB file and reimporting it again.
I can provide a Perl (or PHP) shell script to do the job for $10.
Great .. I've PM'ed you .. Get back to me