,cc.description AS currency
This commit is contained in:
@@ -359,10 +359,14 @@ if ( mode == 300 ){
|
|||||||
snprintf(extraQ, sizeof (extraQ), " WHERE jo.expire < now() +'6 hrs' AND jo.expire > now() AND jo.status = 1 AND jo.public_view =0 AND jo.reminder_count = 2 AND jo.reminder_date IS NOT NULL");
|
snprintf(extraQ, sizeof (extraQ), " WHERE jo.expire < now() +'6 hrs' AND jo.expire > now() AND jo.status = 1 AND jo.public_view =0 AND jo.reminder_count = 2 AND jo.reminder_date IS NOT NULL");
|
||||||
}
|
}
|
||||||
|
|
||||||
const PGresult *res = pgsql_query("SELECT jo.id AS offer_id,jo.added,j.title,jo.expire,to_char(jo.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire_formated, jo.email, jo.client_id, "
|
const PGresult *res = pgsql_query("SELECT jo.id AS offer_id,jo.added,j.title,jo.expire,"
|
||||||
"jo.job_id,jo.reminder_count,jo.reminder_date,jo.email AS firstname, jo.email AS rec_username,j.description AS job_description ,j.timeline_days,j.price, jo.offer_code "
|
" to_char(jo.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire_formated, jo.email, jo.client_id, "
|
||||||
"FROM members_jobs_offer jo "
|
" jo.job_id,jo.reminder_count,jo.reminder_date,jo.email AS firstname, "
|
||||||
"LEFT JOIN members_jobs j ON j.id = jo.job_id "
|
" jo.email AS rec_username,j.description AS job_description ,"
|
||||||
|
" j.timeline_days,j.price, jo.offer_code,cc.description AS currency "
|
||||||
|
" FROM members_jobs_offer jo "
|
||||||
|
" LEFT JOIN members_jobs j ON j.id = jo.job_id "
|
||||||
|
" LEFT JOIN currency cc ON cc.country = j.country "
|
||||||
" %s AND jo.reminder_count < 4 LIMIT %lu ",extraQ, limit);
|
" %s AND jo.reminder_count < 4 LIMIT %lu ",extraQ, limit);
|
||||||
|
|
||||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user