Ya me funciona !!
Conclusión: usé mysql_fetch_array para obtener el resultado de la consulta y le puse ";" a todo el codigo que había generado (que burro!!)que era más que lo que se veía a simple vista...
muchas gracias , TolaWare, elbetonet, okram, Ronruby y GatorV!!
Dejo unos links por si alguien le interesa el tema
http://www.php.net/manual/es/function.mysql-query.php http://www.php.net/manual/es/functio...etch-array.php http://www.php.net/manual/es/functio...tch-object.php http://www.php.net/manual/es/function.mysql-result.php