Find Jobs
Hire Freelancers

242654 Garbage Collectors and Updater

N/A

Đã hoàn thành
Đã đăng vào hơn 15 năm trước

N/A

Thanh toán khi bàn giao
Platform: FreeBSD amd64 Script: PHP DB: MySQL I need someone to write one or two garbage collectors, preferably in PHP, that will simply query a table in mysql for records older then say 30 days from NOW() based on the createtime column, which is datetime. This script will be ran via crontab, not via http, so no html or anything is needed. --------------------------------------------------------------- For the next script 'the updater'. This script will also run via crontab only, which I would also like written in PHP. This script will be a little more complicated, you may need to use JOIN, but I'll leave that up to you. I have two tables * products * product_pricing I need this script run a few queries 'products' for products older then 120 days from NOW(). The date column type on this table is date '0000-00-00' So we would run a query like - select id AS product_id from products WHERE sid = 291821 and releasedate <= 120 days old Then If the product is within the 120 days, it does an update on the record e.g. UPDATE product_pricing SET mode_7 = 19.95, mode_30 = 21.95, mode_d_7 = 20.95, mode_d_30 = 22.95, mode_d_own = 35.95 WHERE product_id = XXXXXXX If this product is older then 120 days.. it should do a seperate update: UPDATE product_pricing SET mode_7 = 14.95, mode_30 = 16.95, mode_d_7 = 14.95, mode_d_30 = 16.95, mode_d_own = 25.95 WHERE product_id = XXXXXXX Should be pretty straight forward.. hour maybe two hours of work max.
Mã dự án: 1988905

Về dự án

1 đề xuất
Dự án từ xa
Hoạt động 12 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
Can be done within the hour, let's start! Escrow required.
$50 USD trong 0 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của UNITED STATES
Castro Valley, United States
4,8
27
Phương thức thanh toán đã xác thực
Thành viên từ thg 5 4, 2007

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.