Jump to content


  • Posts

  • Joined

  • Last visited

Community Answers

  1. Moorcam's post in Printing Div loses style in preview was marked as the answer   
    If anyone else wants this, here's what solved it for me...
    document.getElementById("printButton1").addEventListener("click", function() { var printContents = document.getElementById('invoice').innerHTML; var originalContents = document.body.innerHTML; var printButton = document.getElementById("printButton1"); var closeButton = document.getElementById("closeButton1"); document.body.innerHTML = printContents; document.getElementById('printButton1').style.visibility = 'hidden'; window.print(); document.body.innerHTML = originalContents; window.location.reload(true); });  
  2. Moorcam's post in Showing Data Assigned to User was marked as the answer   
    Change the following:
    <td><?php echo $job->start_date;?></td> <td><?php echo $job->name;?></td> To...
    <td><?php echo $row['p_start_date']; ?></td> <td><?php echo $row['p_name']; ?></td>  
  3. Moorcam's post in Database Not Updating - CodeIgniter was marked as the answer   
    Was not getting id from database.
    So, changed
    function update($id) { $this->db->where('id',$id); $this->db->update('tbl_team_member',$data); } to this
    function update($data) { $this->db->where('id',$this->session->userdata('id')); $this->db->update('tbl_team_member',$data); } Just in case anyone else runs into same issue.
  4. Moorcam's post in Undefined Method was marked as the answer   
    Ignore my impatient and lazy outburst of the "Please rescue me!". I went and put my grown up pants on and figured it out.
    I was missing some of the Model_FFleet file. Jeesh!
  5. Moorcam's post in Loop icon for PHP Search was marked as the answer   
    <input type="text" class="searchTerm" placeholder="What are you looking for?"> <button type="submit" class="searchButton"> <i class="fa fa-search"></i> </button> You need Font Awesome. If you have it, try the above. 
  6. Moorcam's post in Updating MySQLi from Dropdown not working was marked as the answer   
    <select class="form-control" name="maintreq[<?php echo $issue_id; ?>][issue_priority]"> <?php echo '<option value="'.$issue_priority.'">'.$issue_priority.'</option>'; ?> <option value="High">High</option> <option value="Medium">Medium</option> <option value="Low">Low</option> </select> </td> <td class="text-center"> <select class="form-control" name="maintreq[<?php echo $issue_id; ?>][issue_status]"> <?php echo '<option value="'.$issue_status.'">'.$issue_status.'</option>'; ?> <option Value="Open">Open</option> <option Value="Pending">Pending</option> <option value="Repaired">Repaired</option> </select> That better?
    It works now though. Nothing getting deleted or anything and everything gets updated the way I want.
  7. Moorcam's post in Undefined index on $_SESSION was marked as the answer   
    Got it.
    The issues was me being stupid.
    I will not go there
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.