VCE Stuff > VCE Computing: Software Development
PHP Programming
(1/1)
mussiel:
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
Aaron:
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
mussiel:
That should help me
Cheers
Navigation
[0] Message Index
Go to full version