Welcome to PHPBuilder! When posting PHP code, please use the board's [noparse]
[/noparse] bbcode tags as they make your code much easier to read and analyze.
As for your issue, where is $dbcon defined? Does that code verify that your connection to the MySQL server was successful?
EDIT: Looks like NogDog beat me to it.
Also, note that you might want to remove/obfuscate your DB login credentials the next time you post some code. 😉