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
Web DevelopmentHTMLDatabasesPHP
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">
<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">

Open in new window

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,

Trying to learn php

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
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