Psycho Posted March 9, 2012 Share Posted March 9, 2012 I basically click the search button of the form and it just refreshes the page and the form still appears. That is substantially different from your previous statement of Ok I have done that above, but i'm totally puzzled I don't understand why it still does not show me anything still? been stuck on this for 3 days. it doesnt show no error messages or anything? If we had known it wasn't even loading the correct page our responses would have been different than they had been. Quote Link to comment Share on other sites More sharing options...
usman07 Posted March 9, 2012 Author Share Posted March 9, 2012 yeah when i said 'the form still appears' meaning t actually still appears as html, but yeah i should have explained better. Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 9, 2012 Share Posted March 9, 2012 yeah when i said 'the form still appears' meaning t actually still appears as html, but yeah i should have explained better. Your form now seems to be calling the correct page now, yes? Although it is only outputting a "1". Based on the code you are supposedly using, that would mean you only have 1 matching record and only the ID field has a value (e.g. the '1'). Quote Link to comment Share on other sites More sharing options...
usman07 Posted March 9, 2012 Author Share Posted March 9, 2012 yeah the php page is now showing and yeah your absolutely right it is showing 1 record? why is this? how do i get it to display the result depending on what is filled in the form? Quote Link to comment Share on other sites More sharing options...
trq Posted March 9, 2012 Share Posted March 9, 2012 You need to add a WHERE clause to your query and pass data from the form into it. There are literally thousands of tutorials around that show you how to do this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.