app/utilities.rb
def delete_record_sql(mysql, posting_id)
    sql = "delete from postings where posting_id = '"
    sql << mysql.escape(posting_id.to_s)
    sql << "'"

    return sql
end
# delete the record if it already exists
delete the record if it already exists
delete the record if it already exists
def delete_record_sql(mysql, posting_id)
    sql = "delete from postings where posting_id = '"
    sql << mysql.escape(posting_id.to_s)
    sql << "'"
    return sql
end
def delete_record_sql ( mysql , posting_id ) sql = "delete from postings where posting_id = '" sql << mysql . escape ( posting_id . to_s ) sql << "'" return sql end
delete the record if it already exists
delete the record if it already exists
mysql
posting_id