ATAR Notes: Forum

VCE Stuff => VCE Technology => VCE Mathematics/Science/Technology => VCE Subjects + Help => VCE Computing: Software Development => Topic started by: mussiel on July 19, 2018, 08:22:49 pm

Title: PHP Programming
Post by: mussiel on July 19, 2018, 08:22:49 pm
Hey,

Does anyone know PHP and knows if I can put an if/else statement in a table?
Google isn't really helping me and my teacher doesn't really know the language...

Any help would be greatly appreciated  :)

Cheers
Title: Re: PHP Programming
Post by: Aaron on July 19, 2018, 08:38:12 pm
Can you elaborate a bit more? Anything relating to PHP and HTML output is possible when done correctly.

If you're asking whether you can code an if/else statement to show certain parts of a table (e.g. showing a tr row if a count > 5), then yes.

In a general sense, you can do something like this:

https://imgur.com/a/29zgXrU
https://screenshotscdn.firefoxusercontent.com/images/d603e756-716a-401d-a065-d730118dc83d.png
https://screenshotscdn.firefoxusercontent.com/images/813b7d56-cebe-404b-a36b-d162897b7228.png
Title: Re: PHP Programming
Post by: mussiel on July 24, 2018, 07:29:18 pm
That should help me

Cheers