0

I am trying to get my php output to display into a table. However, I get a error message each time.

Code without table:

 Print "<strong>Responsibility: $<strong> ";
 Print  number_format($RunningTotal,2);

Code with table which I get a error message:

Print "<TABLE><tr><td width = '50 px'>Responsibility: $<strong></td> ";
Print "<td> number_format($RunningTotal,2) </td></tr></table>;

What am I doing wrong? How can I get the data to display in a table format?

3 Answers 3

2
Print "<TABLE><tr><td width = '50 px'>Responsibility: $<strong></td> ";
Print "<td>".number_format($RunningTotal,2)." </td></tr></table>";
Sign up to request clarification or add additional context in comments.

Comments

0

It looks like your second print statement is missing a quotation mark.

Comments

0

Use echo, it is faster than print

echo "<TABLE><tr><td width = '50 px'>Responsibility: $<strong></td> ";
echo "<td> ".number_format($RunningTotal,2)." </td></tr></table>;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.