I'm pretty new to MySQL.
I recently installed php, MySQL, Apache on my PC. I'm also working with Dreamweaver Ultradev 4 and Phakt.
On my search page, I have 1 text box and 1 dropdown box.
When I submit the form if I leave the text box empty, it seems to pull the whole database. Also I have a similar problem with multiple pages. I have next and previous pages set up. I only have 4 records at the moment. I have set it so that only 2 records appear on the page. If I enter a search that pulls 3 records it will say found 2 of 3 records. When I click 'next', it will say 3 of 4 records, with the 4th. record being totally unrelated.
I think this is because when I click 'next' the text box becomes empty.
Can someone help with a suggestion, maybe an IF statement ??
Thanks alot.
I recently installed php, MySQL, Apache on my PC. I'm also working with Dreamweaver Ultradev 4 and Phakt.
On my search page, I have 1 text box and 1 dropdown box.
When I submit the form if I leave the text box empty, it seems to pull the whole database. Also I have a similar problem with multiple pages. I have next and previous pages set up. I only have 4 records at the moment. I have set it so that only 2 records appear on the page. If I enter a search that pulls 3 records it will say found 2 of 3 records. When I click 'next', it will say 3 of 4 records, with the 4th. record being totally unrelated.
I think this is because when I click 'next' the text box becomes empty.
Can someone help with a suggestion, maybe an IF statement ??
Thanks alot.