Jump to content

gw1500se

Members
  • Posts

    1,041
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by gw1500se

  1. Now that I can see it, it makes no sense. There is no PHP code other than the unnecessary echo. This looks like a javascript question. The page should just be: <!DOCTYPE html> <html> <head> <TITLE></TITLE> <script> var ld=(document.all); var ns4=document.layers; var ns6=document.getElementById && !document.all; var ie4=document.all; if (ns4){ ld=document.loading; }else if (ns6){ ld=document.getElementById("loading").style; }else if (ie4){ ld=document.all.loading.style; } function init(){ if(ns4){ ld.visibility="hidden"; }else if (ns6 || ie4){ ld.display="none"; } } </script> </head> <body style="background-color: rgb(0, 0, 0);" onLoad="init()"> <div align="center" id="loading"><img src="images/Animeringar/Loading_200x200.gif" width="150" height="150" border="0"></div> </body> </html> Note removal of the unnecessary escapes (\). No PHP is involved.
  2. Please don't post images of code. My eyes are not that good. Post the code itself and use the code icon (<>) selecting PHP. The built-in formatter also makes your code easier to read.
  3. You will get better help if you show your actual code. Pseudo code does not help us help you. Also be sure to use the code icon (<>) and specify PHP.
  4. Then do what I suggested. Build a query that inserts multiple rows up to your limit then issue that query. However, 100 may be too small a number to achieve maximum efficiency. That article also explains out to decide how many rows can be practically handled.
  5. Use foreach. Not sure why you want groups of 100. What do you plan to do between groups? You can add a counter to the loop and do whatever every 100 within the loop.
  6. Where did you add that line? It probably need to be before they other headers. However, you are much better off using PHPMailer. It is easier to use and provides better control.
  7. It is playing because you are telling it to in the echo/script. If you want the user to start the play, create a button instead and have the onClick attribute execute the PlaySound script.
  8. I haven't tried it myself but I believe Imagemagick can read and parse tiff files.
  9. What did you try? What did not work or what error message did you get? Its impossible to help you if you don't show us your code.
  10. This is what you need.
  11. That result is parsable but I suspect that is not really your question. Are you asking why it is returning false? If so that is a function of the SOAP request not a parsing issue. You need to clarify what you are doing/asking.
  12. First, please use the code icon (<>) for your code and specify PHP. As for your specific problem, you are not checking for errors. Make sure you use error_reporting(E_ALL); at the beginning of the script to debug. You probably need to use a try/catch for your production version to handle errors.
  13. You need to echo $visitsneeded and $read to see what they really are.
  14. And the other (5609) apparently was visited enough.
  15. How do you know it is not going to the next value? You don't echo anything if there is a match.
  16. Yes but the order may not be what you expect. Do the following after the first loop to debug it echo "<pre>"; print_r($rifdid); echo "</pre>" Then echo $key just before the 'if': I am guessing the order is not what you expect so you may need to use the 2nd 'if' statement.
  17. Use an array for $firdid In the first loop: i=0; foreach(findCustomAlerts($customerid) as $key=>$value){ echo "ID of cat : ".$rifdid[$i++] = $value['Catid']."<br>"; Then use that in the other loop: i=0; foreach($rfid as $key=> $read){ if($key ==$rifdid[$i++] && $read < $visitsneeded) { This assumes $value will result in $rifdid being in the same order as $rfid. If it is not then you will need to search the array to see if that key is in it. See array_search. if(array_search($key,$rifdid) && $read < $visitsneeded) {
  18. First please use the code icon (<>) for you code and specify PHP. The formatter makes your code much easier to read. The problem, I believe, is $rifdid. Notice that you only set that variable in the first foreach loop. So when you use it in the if block, it will always have the same value. That value is whatever it was set to on the last pass of the first foreach loop. It seems unlikely that is what you really want.
  19. '$checkboxvalue' will never be 'empty'. It is a boolean value. If you want to know if none of the boxes are checked then use '!$checkboxvalue' in the 'if' statement.
  20. Probably a waste of time. If users with those IPs use a VPN you won't know where they are coming from anyway. If you properly harden your server and pages you don't have to worry much about hackers. If you want to keep certain users off your web site then use a login page and vet the user before permitting access.
  21. Since you have multiple queries, you don't indicate what 'it' is. Which query is returning the bogus data? As an aside you should not use '*' in a select. List only those columns you actually intend to use.
  22. Add this before the 'foreach' to make sure it does what you expect. echo "<pre>"; print_r(range( 0, $datediff )); echo "</pre>"; The errors are likely related. Which lines are 661 and 670?
  23. Do you mean myPHPadmin for MySQL? What is wrong with the standard one?
  24. Perhaps the OP is confusing server side (PHP) stateless operation vs client side (javascript) operation.
  25. I'm not following what you want to do. You say you want the page to reload without clicking the submit button. That is what it is doing which makes no sense. There must be some condition, you did not explain, that will cause a reload without the submit button.
×
×
  • 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.