It depends heavily on your location. Public schools are generally assigned based on the student's primary address, so houses in good school districts tend to attract a premium. This leaves schools in poor areas chronically underfunded and understaffed
Even “poor” schools in the US are generally receiving more funding per student than the average school in other countries.
The “bad” public schools are a result of increasing and spreading social dysfunction (see the other comment in this thread about drug dogs), not funding.