Jump to content

WAMFT1

Members
  • Content Count

    72
  • Joined

  • Last visited

Community Reputation

0 Neutral

About WAMFT1

  • Rank
    Regular Member

Profile Information

  • Gender
    Male
  1. I really have no idea what I am do with this, any change I make to the countdown it just stops working altogether. I have no IT background other than what is self taught. I can't make sense of this to work it out properly.
  2. I know very little other than the basics. That is why I am asking for help. I don't know how to incorporate the countdown timer script into the code so that it stops when it is hidden.
  3. I have made some changed and managed to get the video to stop on visibility change but I can't figure out what to do with the timer script. I need that to stop too. Can I get some help please. This is doing my head in. <? //PD Day Specifications $PresTitle="Video Presenation"; // Name of Presentation $Video="../pdpresentations/202005/202005-TFLG-10.IressXplanPresentation.mp4"; // URL of video file $Time="1800"; // video lenght in seconds $CPDCode="Insert Code Here" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tra
  4. I know that I can't stop the bathroom break but if they were to open a second tab or move to another program or just click away from the browser that the counter and video stops.
  5. Hi All We have a group of pages containing a video and countdown clock to provide a code when video is viewed. I am trying to work out how to make it so that when the webpage is not in focus that the countdown and video playback stops and then resumes when back in focus. I hope this makes sense. Below is the page in its entirety but now sure how to achieve the onfocus mechanism. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta h
  6. As I am VERY new to PDO, can someone help me in converting the below 2 codes so that I can setup the testing site knowing at least this part works. Below is the old SQL that I need to convert but don't have to foggiest on where to start. If I can get some help with this I can slowly work through the rest of my site with a bit more ease. LOGIN CODE: <?php if($_POST['submit']){ $Username = protect($_POST['Username']); $Password = protect(sha1($_POST['Password'])); if(!$Username || !$Password){ echo "<center>Please enter your <b>Username</b> and <b
  7. Thanks mac_gyver. I will do some quick research on how to use PDO and try and update what I have.
  8. I have to start work on upgrading my work site and wonder whether to go SQLI or PDO? I don't know either so which would be easier to learn? I may need some help to get some things working properly. Any tips or tricks would be appreciated.
  9. Ignore my last, I have managed to work it out. Finally.
  10. I managed to get the DateDiff working, now my Inner Join part doesn;t work. Wish I knew more about coding. Can someone please help? I can't see what is wrong. ("SELECT adviser, status, complainant, complaint_id, date_received, settlement_date, DATEDIFF(COALESCE(settlement_date, CURDATE()), date_received) as interval_days FROM `compliance_complaints` INNER JOIN eusers ON eusers.id = compliance_complaints.adviser WHERE status='Open' order by complaint_id DESC;");
  11. I don't understand how the above works the 'if' query with date. I've tried so much and I am now just getting frustrated. Going around in circles. What I have is as below, I don't know how is should be. and yes, i know i am using obsolete code but it is a temporary fix. <?php include("../edb.php"); $result=mysql_query("SELECT * FROM `compliance_complaints` INNER JOIN eusers ON eusers.id = compliance_complaints.adviser WHERE status='Closed' order by complaint_id DESC "); if($test['settlement_date']=="0000-00-00"){ $date1 = new DateTime($date_received); $date2 = new DateTime
  12. Hi Everyone I have an older coded side that I am looking at for a friend, I need to add in a date diff colum into their existing index page. I can add using the following code onto the indivudually record page can't get it to work on the index. Any help is appreciated. Code on Individual page which works::: <HEAD> <? if($test['settlement_date']=="0000-00-00"){ $date1 = new DateTime($date_received); $date2 = new DateTime("now"); $interval = $date1->diff($date2); } else { $date1 = new DateTime($date_received); $date2 = new DateTime($settlement_date); $interval = $da
  13. Is it possible to format the menu items in the drop down box? Below is the code used at the moment. What I would like is to make Yes = Green, No = Red and N/A stay black. I tried using the class and style setting on the inline code but had no luck. Can anyone please shed some light on how I would go about this? <select name="ob_admin_quals" class="standard_left" id="ob_admin_quals"> <option value="Yes"<?php echo($ob_admin_quals == 'Yes') ? ' selected' : '';?>>Yes</option> <option value="No"<?php echo($ob_admin_quals == 'No') ? ' selected' : '';?>>N
  14. It looks like the issue is with the Mail::factory Fatal error: Class 'Mail' not found
  15. Crashes => When I hit submit, the update query part works fine, it seems to stop working around the sending the email part. I just get a blank screen. I don't get the email or the echo "Saved" etc. There seems to be an issue in the actual emailing part which I cannot work out.
×
×
  • 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.