#insert new record if it dosent already exist
if !dbh.select_one('SELECT Salenm FROM Auctions Where Salenm LIKE "%' + c.attributes["href"][/....$/] + '%"')
dbh.do("INSERT INTO Auctions (Salenm, Date, Location) VALUES (?, ?, 1)",
...
Ruby Insert new record if it dos...
by bain19.myopenid.com,
June 24, 2010 04:33,
1 refactoring, tagged with mysql, if, select, bain19, sql injection
;(function($) {
$.fn.extend(
...
JavaScript filter selectbox with 3000+...
This is a little jQuery scr...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ...
JavaScript Playing with dom
by Denis Jacquemin,
October 24, 2009 21:33,
2 refactorings, tagged with javascript, prototype, select, option
This code works fine, I jus...
select rrr.account_number,
summa,
to_char(to_date('19570101', 'YYYYMMDD') + max(rrr.lst_pay_dn),
...
PHP Can I do it without accessi...
Actually it's not PHP. And ...
$('.answer_filter').change(function() {
var filter = jQuery(this);
var select = jQuery('#' + filter.get(0).id); // @TODO find a more appropriate solution
...
JavaScript Get the id of a <select&...
by sebastian.deutsch.myopenid.com,
January 27, 2009 17:19,
3 refactorings, tagged with javascript, jquery, select
I get a change event within...
var next = false;
for (var i = 0; i < el.options.length; i++) {
if (next) {
...
JavaScript Check next option in select...
by Dmitry Polushkin,
January 25, 2009 15:04,
5 refactorings, tagged with select, options, increment, next
Could be written in plain j...
Is there a safer way to-do ...