Question: what is the difference between p value and t test?
Answer: Consider them simply different ways to quantify the "extremeness" of your results under the null hypothesis. You can't change the value of one without changing the other. The larger the absolute value of the t-value, the smaller the p-value, and the greater the evidence against the null hypothesis.