Login

Welcome, Guest. Please login or register.

March 29, 2024, 08:27:23 am

Author Topic: PHP Programming  (Read 964 times)  Share 

0 Members and 1 Guest are viewing this topic.

mussiel

  • Fresh Poster
  • *
  • Posts: 2
  • Respect: 0
PHP Programming
« on: July 19, 2018, 08:22:49 pm »
0
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

  • Honorary Moderator
  • ATAR Notes Legend
  • *******
  • Posts: 3932
  • Respect: +1536
Re: PHP Programming
« Reply #1 on: July 19, 2018, 08:38:12 pm »
+2
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
« Last Edit: July 19, 2018, 08:59:25 pm by Aaron »
Experience in teaching at both secondary and tertiary levels.

website // new forum profile

mussiel

  • Fresh Poster
  • *
  • Posts: 2
  • Respect: 0
Re: PHP Programming
« Reply #2 on: July 24, 2018, 07:29:18 pm »
+1
That should help me

Cheers
« Last Edit: July 24, 2018, 08:01:23 pm by mussiel »