Jump to content

LoneStarJack

Members
  • Posts

    19
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

LoneStarJack's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks Perfect answer
  2. I am trying to use class StockMarketAPI and have a problem with acessing the return variable. foreach( $list_of_stocks as $sym){ $StockMarketAPI = new StockMarketAPI; $StockMarketAPI->symbol = $sym; $StockMarketAPI->stat = 'price'; print_r($StockMarketAPI->getData()); The print_r line returns : AA Array ( [price] => 11.885 ) echo '<br>'. $sym. ' ' . $data['price']; I have tried everything I know to capture the "$data['price'] // add update database table here with the returned price };
  3. Thank you I have never used the .param before, but I will read up on it now. Your help is greatly appreciated.
  4. It looked as if my browser (Firefox) was hung up "waiting for phfreaks.com". I tried to delete two as soon as I say the duplication but didn't find the button or link. Please forgive my impatience by pressing the Post button 3 times.
  5. I have tried everything I could find to combine these two AJAX requests into one request, Is there a doable answer? <!doctype html> <html> <head> <meta charset=utf-8"/> <title>Test sessions</title> <script src="../js/jquery.js" ></script> </head> <script> $(function() { $("#btn_test").click(function(){ $.post("sessions_set.php", { key: "test_type", value: "any old type" }); $.post("sessions_set.php", { key: "test_mode", value: "any mode" }); }); }) ; </script> <button id="btn_test" />Click <?php session_start(); $_SESSION{$_REQUEST["key"]} = $_REQUEST["value"]; ?>
  6. I had to reinstall everything on my laptop when a virus program wiped out my registry without first backing it up. Luckily I also installed PHPEd. Now everything that worked before comes to a blank screen however I can execute the program with PHPEd. This bombs out on my laptop: http://127.0.0.1/utility/ad_hoc_query.php With Status Code:500 Internal Server Error This works on my laptop using either PHPEd or the URL address line. http://localhost:8080/file:/C:/inetpub/ ... _query.php I tried changing the connection to mysqli and changed from localhost to 127.0.0.1 but that didn't solve to problem. I did not see any port info in PHPINFO and wonder if there is a problem between 3306 and 8080. Where do I change 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.