Hi,
I am new in php and trying to build a database driven web site. In every step I deal with a new problem .
In the image I attached I have a diagram of how the website looks.
As you can see I have a side bar with two dropdown menus and on the right is the main content of the page.
The procedure goes like this:
When I select a value from the drop down menu and click the button, a request is sent through Ajax to the database (I use the $.ajax function).
All the php code is written in a different file which I define in the url of ajax method.
That way my page is not refreshed every time that I click the button.
But the problem is that the results are not appearing where I want. As you can see in the diagram(attached) I want them to be in the main content of the page (1)
but they appear on the sidebar (2).
This must be really easy question but as I said I started learning only some time ago.
Any suggestions?
Thanks
Dimitris