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 SkipVought 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. DreamerZ

    Excel query success

    Bump* No one has any suggestions? DreamerZ
  2. DreamerZ

    Excel query success

    I have had a database connection running for the last few years and everything has seemed to go smoothly. Recently, however, the users have noticed that for some days the query locks up and isn't run. The only change has been the database the query is connecting to. Essentially, the set...
  3. DreamerZ

    Multidimensional array issue

    Alright, it looks like I fixed it. Here's the new code: foreach($sch as $key=>$data) { $tmpSch = ""; $tmpSch .= $data["sat"]."^".$data["group"]."^"; for ($i=0; $i<count($data)-3; $i++) { $tmpSch .= $data[$i]["opOff"]."_".$data[$i]["opODay"]."^"; } $writeSch[] =...
  4. DreamerZ

    Multidimensional array issue

    I have a multidimensional array. When I try to extract values from the array, the first array, 3 deep (0, bolded) gets skipped everytime. Here's a sampling of the array: Array ( [1104566400] => Array ( [sat] => 1104566400 [strSat] => 01/01/2005...
  5. DreamerZ

    Combining array question

    I knew if I played long enough I'd figure it out. Not elegant, but it works. Went through the full array and combined the values I wanted into a new array. Then, for each key in that new array, I went through the original array and added the slots value together. Finally, outside the full...
  6. DreamerZ

    Combining array question

    I have an multidimensional array where if 3 values are the same, I want to combine them and add other values together. Here's the array: Array ( [0] => Array ( [date] => 1127977200 [strDate] => 09/29/2005 [shift] => Day [title] =>...
  7. DreamerZ

    Way to Enter a Time

    Trying looking at the onchange() event for the input field. With the onchange, you can check each change to the field and validate if there are 2 characters in the field, then print the colon, 4 characters, print another colon. For a valid time, you could create another function that parses...
  8. DreamerZ

    Connecting to a network drive via Access VBA

    heh. Didn't try "Remove." Thanks! DreamerZ
  9. DreamerZ

    Connecting to a network drive via Access VBA

    As usual, PHV, you've come through. How do I check for an existing connection though? The code errors if the connection already exists. Guess I could disconnect the mapped drive at then end. Tried WN.Disconnect and WN.DisconnectNetworkDrive Neither worked. There a command for that too...
  10. DreamerZ

    Connecting to a network drive via Access VBA

    I have an Access form that runs some Excel Code that pulls data from a DB on another network drive protected by a user name and password (the reasons for this setup are very convoluted and silly, but be secure in the knowledge that I cannot do anything about it. It's big company logic!). I...
  11. DreamerZ

    Opening a MSWord doc

    heh. I overthought the problem/solution. A simple redirect was the way to go. Upload the document then echo <script>window.location=$file</script>. Thx, DreamerZ
  12. DreamerZ

    Opening a MSWord doc

    I'm sorry if I wasn't clear. I said, "I'm providing an upload function and then want to display that uploaded document in the browser." After selecting the file to upload and then clicking the button to upload that file, the next screen is to display the document automatically, not by clicking...
  13. DreamerZ

    Opening a MSWord doc

    I've searched through several pages of posts after searching keywords like, "converting Word document to HTML php." I've read the htmlentities and html_entity_decode functions on php.net as well as the COM information. I've even tried some of the functions listed in the posts for those...
  14. DreamerZ

    time input validation

    Oh. You need to put the onkeypress or onKeyUp in the tag for the text field. You have onClick in the button field, which is fine, but not for what you want to do. DreamerZ
  15. DreamerZ

    time input validation

    How about onKeyUp? DreamerZ
  16. DreamerZ

    time input validation

    You could use the indexOf() method to locate the : (colon) and then check each piece prior to and after it to the end. http://www.w3schools.com/js/js_obj_string.asp has a good section on string objects. DreamerZ
  17. DreamerZ

    Session Basics

    Okay, well, I thought I got this working, but... Forget the code above. I'm going to try and simplify what I'm doing. Here's the "simple" code: <? session_start(); if($pwd==1) //Password validation { alert('test'); //check user name and password. If correct, continue below...
  18. DreamerZ

    Session Basics

    Well, you'll be happy to know I got it to work. I'm not exactly sure what I did since all I think I really did was change WHERE the login script appeared in the file. I had them at the beginning of the file initially. Moving them to the end seemed to fix the problem. I'm sure I did something...
  19. DreamerZ

    Session Basics

    I guess I'm confused as to why I need to post the $pwd variable as it does nothing but identify the form action from the previous section. <form method=post name=frm_Pwd action='bstAbsence.phtml?pwd=1'> So, the "Log In" button is clicked, the form is submitted to $pwd=1. Under $pwd=1 the...
  20. DreamerZ

    Session Basics

    How do I do that? The $_SESSION['site'] = 'WestSac' isn't enough? Do I have to do something different? DreamerZ

Part and Inventory Search

Back
Top