IndianaGuy

Members
  • Content count

    69
  • Joined

  • Last visited

Community Reputation

0 Neutral

About IndianaGuy

  • Rank
    Newbie
  1. I am trying to make an INT field in my database to be updated from current value to current value +1. I have this so far but the value is not updating. Thank you $sql2 = "UPDATE tbl_team SET TM_Counter = TM_Counter + 1 WHERE TM_code=$access_code"; $result2=mysqli_query($sql2);
  2. Exactly what I needed. Thank you very much
  3. How would I select ui block-a with id "desc". Also, how would I select .ui block-a with class "titles" as the same time? Thank you in advance .ui-block-a, { background-color: lightgray; border: 1px solid black; height: 300px; font-weight: bold; text-align: center; }
  4. This is causing me a remarkable headache. I am hoping someone would be generous and gives me some guidance. Thank you I even tried to list the (<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">) as the first of the style sheets to be loaded. I tried it as the last one to be loaded. I even downloaded it and used it locally. The effects don't load unless I refresh the page. Could it possibly be a problem with the style sheet itself? thank you New update, the need for a page reload online happens when the page is being viewed on a mobile device. It shows up perfect the first time around on a desktop.
  5. Hello folks, I am hoping to get some guidance with this odd issue. My CSS page only loads after I get to a page and refresh it!. Here is what I mean Page1.php - A small form the user completes and on submit, it takes you to page 2 page2.php - Tells the user if they made the correct choice and gives them a link to page3.php on page3.php - The things I specified in my myStyles.css page only works after I reload page3.php and it also asks me "Are you sure you want to submit this form again?". There are no forms in page 2 or 3 nor are there any variables moved except from page 1 to page 2. I am utterly confused as to what would cause this! Thank you for any advice you may have. UPDATE: It's only the thing I used from the following library that require the page to be refreshed for them to work. <link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
  6. Hello folks, I am hoping to get some guidance with this odd issue. My CSS page only loads after I get to a page and refresh it!. Here is what I mean Page1.php - A small form the user completes and on submit, it takes them to page2.php page2.php - Tells the user if they made the correct choice and gives them a link to page3.php on page3.php - The things I specified in my myStyles.css page only works after I reload page3.php and it also asks me "Are you sure you want to submit this form again?". There are no forms in page 2 or 3 nor are there any variables moved except from page 1 to page 2. I am utterly confused as to what would cause this! I just want page3.php to show up normally like any other page.
  7. Thank you
  8. This is giving me a shadow and I am not sure why?. Also, can some one give me a link to the W3CSS library of fonts. Thank you <div class="w3-container"><p class="w3-medium w3-text-white w3-wide">my text.</p></div>
  9. I am looking for a FREE web development tool. Something that requires a little less technical skills. I have tried Aptana and Drupal. Both area very powerful tools, but I am spending hours just to learn my way around the basics. It took me a day of going through annoying stackoverflow posts just to get Aptana to run php files. (P.S I really dislike Stackoverflow). Thank you for any advice you might have.
  10. Awesome and thank you. Also, thx for the link. I didn't know that and definitely will be neat to learn about it.
  11. How do I make an entire row into an Array so I can send it back? this page was triggered from an Ajax request. Thank you Thank you $sql = "SELECT * FROM tblMedia WHERE Med_name= '$selected_expo' "; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) == 1) { $row = mysqli_fetch_assoc($result); // make the entire row into an array so I can send it back to Ajax request page } else { echo "<h3 class='ui-title'>Multiple records found.</h3>"; }
  12. I am getting closer. Ineed this to be in thetogglePlayPause section, not the initialize media player portion. Still needs organizing, but I am close. function togglePlayPause() { // If the mediaPlayer is currently paused or has ended the button status is paused. if (mediaPlayer.paused || mediaPlayer.ended) { // Change the button to be a pause button changeButtonType(playPauseBtn, 'images/icons-png/pause.png'); // Play the media $(".loader").show(); mediaPlayer.play(); mediaPlayer.addEventListener('canplay', hideLoading); mediaPlayer.addEventListener('canplaythrough', hideLoading); var Act = 'Play started'; //function in index page to record user action hitPlay(); } // Otherwise it must currently be playing else { // Change the button to be a play button changeButtonType(playPauseBtn, 'images/icons-png/play.png'); // Pause the media $(".loader").hide(); //console.log('he hit pause'); mediaPlayer.pause(); } function hideLoading() { document.getElementsByClassName("loader")[0].style.display = "none"; }
  13. Thank you for the information. That's great to know. I am a little confused. I am not trying to do anything that every single media file on mobile devices is not already doing! when play is clicked if media is ready, just play if it is not ready, show the loader until its ready then hide the loader! Should I start looking at readyState?
  14. its really short lol <audio id="media-video" onended="myEnd()" controls > <source src="audio/<?echo $Story;?>"> </audio>
  15. I have tried the preload attribute both ways. Here is what I have so far. The problem might be somewhere else. Thank you // Wait for the DOM to be loaded before initialising the media player document.addEventListener("DOMContentLoaded", function() { initialiseMediaPlayer(); }, false); // Variables to store handles to various required elements var mediaPlayer; // Other unrelated varaiable function initialiseMediaPlayer() { // Get a handle to the player mediaPlayer = document.getElementById('media-video'); // Get handles to each of the buttons and required elements playPauseBtn = document.getElementById('play-pause-button'); muteBtn = document.getElementById('mute-button'); progressBar = document.getElementById('progress-bar'); rewindBtn = document.getElementById('rewind-button'); // Hide the browsers default controls mediaPlayer.controls = false; // Add a listener for the timeupdate event so we can update the progress bar mediaPlayer.addEventListener('timeupdate', updateProgressBar, false); // Add a listener for the play and pause events so the buttons state can be updated mediaPlayer.addEventListener('play', function() { // Change the button to be a pause button changeButtonType(playPauseBtn, 'images/icons-png/pause.png'); }, false); mediaPlayer.addEventListener('pause', function() { // Change the button to be a play button changeButtonType(playPauseBtn, 'images/icons-png/play.png'); }, false); mediaPlayer.addEventListener('ended', function() { this.pause(); }, false); mediaPlayer.preload="auto"; mediaPlayer.addEventListener('canplay', hideLoading); mediaPlayer.addEventListener('canplaythrough', hideLoading); } //END MEDIA PLAYER PREP function hideLoading() { document.getElementsByClassName("loader")[0].style.display = "none"; } //more stuff...