troubleshooting Question

What's wrong with this php line? Works on my local development server

Avatar of Adam
AdamFlag for United Kingdom of Great Britain and Northern Ireland asked on
DatabasesWeb DevelopmentHTMLPHP
2 Comments1 Solution87 ViewsLast Modified:
I have the following lines of code which 'works' on my development server, but when I try it on my hosted live server - doesn't work.  They are placed within a form which links to corresponding tables on both the development and live server.

<div class="form-check">
  <input class="form-check-input" type="radio" name="active" id="active1" value="1" <?php if($teacher['active'] == "1"){echo 'checked';}?>>
  <label class="form-check-label" for="active1">
    Active
  </label>
</div>
<div class="form-check">
  <input class="form-check-input" type="radio" name="active" id="active2" value="0" <?php if($teacher['active'] == "0"){echo 'checked';}?>>
  <label class="form-check-label" for="active2">
    Inactive
  </label>
</div>

Sorry - this has been currently being edited as I have discovered I was describing what wasn't actually happening. I'll post more information once I've rechecked what's going on.

Many thanks,

Adam
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros