Jump to content

problem in...


jimfog
 Share

Recommended Posts

Take a look at this code:

if ($i < $startday-1)?>			 <td></td>		   <?php else

Netbeens produces an error at <td></td>. I cannot understand where exactly the error is, somewhere there is a problem inserting that HTML td tag there.

Link to comment
Share on other sites

Yes that work, i did not put brackets cause i thought that when after an if statement there is only one line of code thenthe brackets are not necessary. In the original version of the code i have not placed(the one with echos, not shown here) brackets were omitted and it was ok. It seems brackets are needed if "pure" HTML is to be placed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...