Unable to connect to database !
145 <- 오류번호
SELECT
Opt.*,
L.sale_end
FROM
happy_pay_option AS Opt
INNER JOIN
car_links as L
ON
Opt.links_number = L.number
WHERE
Opt.opt_number = '1'
AND
Opt.links_number != 0
AND
L.sale_end = '0'
AND
case Opt.opt_type
WHEN 0 THEN ( Opt.opt_period >= curdate() ) # 기간
WHEN 1 THEN ( Opt.opt_count >= 1 ) #노출회수
WHEN 2 THEN ( 1 = 1 ) # 클릭회수
WHEN 3 THEN ( 1 = 1 ) # 사용회수
WHEN 4 THEN ( Opt.opt_period >= curdate() AND Opt.opt_count >= 1 ) # 기간+노출
WHEN 5 THEN ( Opt.opt_period >= curdate() AND Opt.opt_count >= 1 ) # 기간+클릭
WHEN 6 THEN ( Opt.opt_period >= curdate() )
END # 기간+사용
AND
L.sale_end =0
AND L.type_nation = 0
ORDER BY
RAND()
limit
0,8
Table './seannivy/car_links' is marked as crashed and should be repaired
Warning: happy_mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in
/hard/hosting4/seannivy/www/inc/board_function.php on line
4676Unable to connect to database !
145 <- 오류번호
SELECT
COUNT(*)
FROM
car_links
WHERE
1=1
AND sale_end = 0
AND type_nation = 0
AND number < 1
AND use_period >= CURDATE()
AND 1=1
Table './seannivy/car_links' is marked as crashed and should be repaired
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in
/hard/hosting4/seannivy/www/inc/board_function.php on line
4944
Unable to connect to database !
145 <- 오류번호
SELECT
number,id,phone1,phone2,email,si,gu,dong,group1,ym,tone,fuel,gas,mileage,atmt,sago,quota,price,
img1,img2,img3,img4,img5,img6,img7,img8,img9,img10,inquire,links_date,reg_date,sale_end,title,zzim_count,gou_number,
old_price,flash_movie,list_icon,addr,sangho,car_number,category1,category2,category3,category4,category5,type_nation,price_no
FROM
car_links
WHERE
1=1
AND sale_end = 0
AND type_nation = 0
AND number < 1
AND use_period >= CURDATE()
AND 1=1
order by ym desc
LIMIT
0,4
Table './seannivy/car_links' is marked as crashed and should be repaired
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in
/hard/hosting4/seannivy/www/inc/board_function.php on line
4973