Jump to content

gw1500se

Members
  • Posts

    1,029
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by gw1500se

  1. Not really a PHP question but how can that number be correct? You seem to be dividing GBP by USD. You need to convert bitcoin to GBP before you divide. You need to multiply 43992.43 USD by the current exchange rate (presently £0.74169) then divide £100 by that. However, since the exchange rate is constantly changing you need to look that number up somewhere when you do the conversion. Same with bitcoin which is currently $47,090.04 US.
  2. No need to run it from command line, you can just as easily debug PHP using a browser. Just be sure to turn on errors: error_reporting(E_ALL);
  3. What have you tried and what didn't work as expected or what error did you get? Post your code and be sure to use the code icon (<>) at the top menu and specify PHP.
  4. When posting code please do not use images. Use the code icon (<>) at the top menu and specify PHP. You didn't show how that function is called or any HTML so we can't see what you have for the checkbox. However, as a guess perhaps you are not understanding that PHP is server only and is stateless. Just checking a box will do nothing unless there is another submit to the server. It sounds like you need to output the page with PHP making the old conferences hidden. Then when the check box is activated, use JavaScript to make those visible.
  5. This is an English forum and you have already posted this question. Such as it is.
  6. Insufficient information. You probably need to post more code. What are your curl_setopts? Particularly CURLOPT_POSTFIELDS? Be sure to use the code icon (<>) in the top menu and specify PHP. What post information does the web site expect and how do you create it? You also need to tell us what the error message is or what you get that is different from what you expect.
  7. Did you try this? $array=imp_open('C:/xampp1/htdocs/S1/Medikamente.csv'); echo "<pre>"; print_r($array); echo "</pre>";
  8. Thanks. I think I found the script. I'll have to open a new thread on the python forum.
  9. Thanks for the reply. I have not used the developer tools much in Firefox so I don't know how to do that. I also don't know what javascript is being triggered. I'm only guessing it is Ajax since there is no form tag.
  10. I have a page with a 'continue' button: <input class="th_s" data-i18n="[value]report.ContinueButtonResource1" id="MainContinueButton" type="button" value="Continue"/> When this button is clicked it appears to trigger some Ajax script but I can't figure out how it can do anything when clicked. Can someone help me figure out how this button is working? TIA.
  11. More information. Does not work doesn't help. What error message do you get or what do you get that is different from what you expect? Do you have error reporting turned on? error_reporting(E_ALL);
  12. Rather then starting with a chunk of code from the internet which may or may not even work, I suggest you start with the PHP manual tutorial.
  13. First please use the code icon (<>) at the top of the menu for your code and specify PHP. Second, your question is too broad. What specifically don't you understand?
  14. Where do you issue the session_start()?
  15. Then you need to set up a ratio to normalize the percentage. $percent = ((%max - $price)/$max)*100
  16. You can't really do it with just PHP, which is server side only and stateless. It would take the user to do something each time you wanted to update the bar. The only way I can think of is to use Javascript to update the progress bar which is client side. If the server is needed to provide some kind of data to update the bar then you will need to use Ajax. Perhaps you need to explain what event(s) cause the progress bar to be updated.
  17. I think I understand the problem. You want the records where either condition is true, right? I think you need 2 where clauses separated by an or.
  18. $v is the value coinciding with the key, $k. echo "<td>" . $v . "</td>";
  19. First please us the code icon (<>) on the top menu. A quick glance I see something I don't think you meant: if($st1 == $st2 or $st3){ This will always evaluate to true since $st3 will be true. I am guessing you really meant this: if($st1 == $st2 or $st1 == $st3){
  20. This is really an SSL problem not PHP. However, why do you say no certificate has expired? Did you look at the certificate in question? Is it a self signed certificate or a certificate issued by the target web site?
  21. Not sure how you are reading the data since you didn't post the script but I suspect it is coming back in byte format. If that is the case you need to convert it.
×
×
  • 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.