SQL Search Results Question

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
Themodem
Forum Newbie
Posts: 6
Joined: Mon Feb 23, 2004 8:53 am
Location: Keighley, UK

SQL Search Results Question

Post by Themodem »

Hi I have a website which searched my database for image links and prices and such.

I have made a query which does all the searching but if there are no reccords that are returnable then the site just shows dead links.

Is there any way to show different text or a different page if there are no reccords returned?

Here is my code

Code: Select all

$query_cars = "SELECT * FROM cars where price>=500 and price<=1000";
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

Post Reply