Hi all,

I'm working on little website and need help creating an if/then state to display different images. I want to have that if/then display one thing if rows where returned on the query and display something else if nothing was returned

My database query is working and is running correctly based on the criteria. My question is how to make the if/then statement look at the results of the query. Any help would be greatly appreciated.

Thank you.

Post your code how you read sql result. So that others can give you exact reply.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.