Truncate table

Does anyone have an idea why this is not working? It used to on another project I did but it won't delete anything now!

mysql_query("TRUNCATE sizes");
Who is Participating?
Om PrakashConnect With a Mentor Commented:
this should work:
mysql_query('TRUNCATE TABLE table;');
jonofatAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.