Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. junkie8

    Parse Json string

    I get the following output from an API call: $json = file_get_contents($service_url); the var_dump of $json gives me: string(308) " [{"Transaction_ID":2805579},{"Transaction_ID":2777876},{"Transaction_ID":2808406}]" However, var_dump(json_decode($json)) returns a null. What am I doing wrong?
  2. junkie8

    Memcache

    I have memcache installed on my RHEL machine. The following script works perfectly when I execute the php script at the command prompt. However, when I try to execute this script from a browser, it returns 'Could not connect'. I have: - changed localhost to 127.0.0.1 - checked the port 11211...
  3. junkie8

    Memcache Not working

    I have memcache installed on my RHEL machine. The following script works perfectly when I execute the php script at the command prompt. However, when I try to execute this script from a browser, it returns 'Could not connect'. I have: - changed localhost to 127.0.0.1 - checked the port 11211...
  4. junkie8

    JQuery Dialog Page

    thank you for the respone, i was able to figure out this problem by changing var pid = $('.btn-msg').attr('pid'); to var pid = $(this).attr('pid');
  5. junkie8

    JQuery Dialog Page

    I seems like my question is not very clearly stated, so I am rewriting it. when the button below is clicked, the javascript function that displays a dialog form gets called. <button class='btn-msg' pid=". $row{'patient_id'}." subj='". $row{'message_subject'}."' cont='"...
  6. junkie8

    JQuery Dialog Page

    Hello, In my php code, I am retrieving entries from a table in the database and displaying them on the webpage using a while loop. The while loop creates a button that opens a dialog form when clicked and it displays some values from the database. With my code below, the dialog form only...
  7. junkie8

    Alarm

    Hi Everyone, I have to set off three alarms at different times of the day. The first two can go off anytime between 8:00am-12:00 pm. The second can go off anytime between 1:00pm-5:00 pm. And the third one will go off at 7:30 pm. Do I need to create separate alarm manager for each alarm?
  8. junkie8

    Unix Epoch Time

    okay, i got it. I had to divide the MealTime by 1000 because the "s" in Dateadd function stands for seconds but my unix epoch time is in milliseconds. thank you so much for pushing me in the right direction.
  9. junkie8

    Unix Epoch Time

    even when i run the simple query below SELECT logP1.PID, DateAdd("s",([logP1.MealTime]-21600),#1/1/1970#) AS myTime, logP1.FoodID, logP1.Portion1, logP1.Portion2, logP1.Portion3, logP1.Portion4, logP1.Portion5, logP1.Portion6 FROM logP1; without inserting the output in a new table, i am...
  10. junkie8

    Unix Epoch Time

    it does not allow NULL values
  11. junkie8

    Unix Epoch Time

    Field Size: Double Format: General Number
  12. junkie8

    Unix Epoch Time

    the column does not show me a date. I get #Num! error in the time column
  13. junkie8

    Unix Epoch Time

    it did not make any difference.
  14. junkie8

    Unix Epoch Time

    Hi, I am trying to insert some fields of a table into another table. The time field of the first table stores unix epoch time that I want to be convert into a readable format before being inserted into the second table. I tried the following query but time formatting is not working. INSERT...
  15. junkie8

    Graphs in Excel

    i am getting the same error message, if it helps here is the entire code again. Sub DotPlot() ' ' DotPlot Macro ' To make dot plots ' Workbooks("NavStructure.xlsm").Sheets("Patient422_SaveMeal").Activate ActiveSheet.Charts.Add ActiveChart.SetSourceData...
  16. junkie8

    Graphs in Excel

    thanks for the tips, but right now my problem is that I am getting object doesn't support this property or method at this line: ActiveChart.SetSourceData Source:=Range("'Patient422_SaveMeal'!$C$2:$V$50") This was not a problem before.
  17. junkie8

    Graphs in Excel

    Ok, i modified the code a bit and now it does not give me any charts at all in the sheet. Sub DotPlot() ' ' DotPlot Macro ' To make dot plots ' Workbooks("NavStructure.xlsm").Sheets("Patient422_SaveMeal").Activate ActiveSheet.Shapes.AddChart.Select ActiveChart.SetSourceData...
  18. junkie8

    Graphs in Excel

    okay, i managed to get some code with the help of macro reader, but the problem now is that I don't always have chart 14 in an excel sheet. How do I modify the code so that it does not have to select by an automatically generated chart name? Is there a way to give the chart a name that I want...
  19. junkie8

    Adding time

    This if condition is only supposed to be executed if my aTime is 2 hours more than lastaTime. Format of aTime and lastaTime is "06:30:00 AM" for example If (CDate(aTime) + TimeValue("02:00:00")) >= CDate(lastaTime)) { } But the code in the if condition is executed even if it is not true. Can...
  20. junkie8

    Graphs in Excel

    no, i have never used that either.

Part and Inventory Search

Back
Top