문제

how can I make this work?

$current_id=5;
SELECT Id FROM table1 WHERE Output='yes' and Time>(SELECT Time FROM table2 WHERE Id="'.$current_id.'") ORDER BY Time

Thanks!

도움이 되었습니까?

해결책

Verify that $current_id actually has a value. Then check whether the subquery returns a value.

The query itself looks proper

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top