I want to delete all posts in a table except the one where big_image has a value?
I have tried almost everything but its not working!
This is tha last one:
sql3="delete from links where userId="& session("user_id") &"
and big_image NOT IN (select big_image
from links
where userId = "& session("user_id") &" and big_image="& bgbild &");"
I would really appreciate some help.
And please parameterize your query or you may soon find yourself with no records in Links at all by way of SQL injection.