For future reference, don’t bother to post PHP code in the CSS forum, as it’s not relevant. What we need to see is what reaches the browser, after PHP has been processed.
The problem is just that you’ve placed an image of the whole page as a background on the body element:
You can’t realistically build a web page like that. Those items like the header and other backgrounds should be built with HTML and CSS. Trying to get text and other elements to position nicely over an image is next to impossible over the various devices, and breaks easily if font sizes change etc.
With regard to your php, please be aware that the mysql_* extension is now deprecated as of the current version of PHP and will very likely be removed from the next 5.x version and will likely not be in PHP 6.x (when it eventually is released). You should migrate over to either the mysqli_* extension or to PDO. PDO is a better choice as it doesn’t tie you down so much to a particular database server software.
Once you have migrated you should use Prepared Statements to prevent SQL Injection attacks. Have a read of this article from the PHP manual, it shows how to use prepared statements with PDO and also explains the principle.
Thank you for your answer, the thing is i’m too junior yet.
So you say that without a big background image surelly the text of the menu will stop overlaping or duplicating.
In internet explorer the text of the menu get completely overlaped or duplicate,
Thank you a lot i’ll make those changes in the site.
For the PHP i’ll try to use the info you gave me so as not having deprecated issues in the near future.