318422 finish mysql query

เสร็จสมบูรณ์ โพสต์แล้ว May 9, 2009 ชำระเงินเมื่อจัดส่ง
เสร็จสมบูรณ์ ชำระเงินเมื่อจัดส่ง

Hello,

I need someone to finish this query for me so it works the way I want it to.

The original working query:

$query = "SELECT COUNT(*) as num FROM banners WHERE status=1 AND max>shown";

The query above pulls up 158 banners which is correct.

Now, I need to exclude banners that the user has already clicked on before so they are not displayed again.

banner clicks are tracked in a table called:

bannerviews

id

userid

blid

bannerviews.blid=[url removed, login to view]

I need the query written now to exclude the banner from displaying if

the [url removed, login to view] shows up in [url removed, login to view] where userid=uname

MySQL Odd Jobs PHP

หมายเลขโปรเจค: #2064223

เกี่ยวกับโปรเจกต์

ข้อเสนอ 1 ใบ โปรเจกต์ระยะไกล ใช้งาน %project.latestActivity_relativeTime|แทนที่%

มอบให้กับ:

akiles99

Ready to start now...

$12 USD ใน 0 วัน
(236 รีวิว)
6.3