Help with code please
I'm trying to run a report from a MySQL database, based on a number of parameters, which is working fine if you want to return one specific result. I want to return a range of results in which any fields left blank return all results. The report code I have is pretty simple:
PHP Code:
I've worked around the problem by having the HTML form return a wildcard when a field is blank (well, added default values and some overly complicated javascript) so it now works but it's still a bit of a hack and slash job. I just don't know enough PHP to get it to work on the server side code. I did try using an IFNULL statement on a query running between the string definition and the current query but that returned no erorrs and did nothing what-so-ever! |
Try to use mysql_fetch_array($result)............ and diplay the results............
|
All times are GMT -4. The time now is 07:00 PM. |
Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.