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...
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[] =...
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...
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...
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] =>...
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...
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...
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...
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
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...
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...
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
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
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.