Answered
Help needed - display basic and enhanced listings from database
Hi - a bit of a newbie question so bear with me. The project
is a fairly simple online product directory. I have a MySQL
database and have set up two pages - search.php and results.php. So
far so good. The db table holds a number of listings, some of which
are basic (free) and some of which are enhanced (paid-for). The
idea is to be able to search so that when you enter (say)
chocolate, it will return all the matches for that category, but
the enhanced listings will appear in a coloured box at the top of
the page, with the basic listings displayed beneath in a plainer
style. The enhanced listings have a product description in the db
table, the basic listings don't. In a sense what I'm looking for is
the sort of thing you get when you Google - sponsored links at the
top, the rest below. I have no idea how to achieve this but assume
that something along the lines of two recordsets need to be
attached to the results page, but don't know how it will work in
practice. If anyone can point me in the right direction I'd really
appreciate it, especially in a non-techie way! thanks in advance
for any input,
regards,
Jeff
regards,
Jeff
