Well this is for Sybase, running on server 2003, but this seemed the most relevant place to post
I have a .txt file with data I would like to insert into a Sybase table.
I'm new to Sybase, as well as, bcp, could some one give me an example of how to do this.
I have a table with three columns (a_1,a_2,a_3). Lets say the file name is apple.txt (this is a tab delimitated file). Data looks something like:
...
User Profile
Collapse
-
How do I use bcp to insert into sybase
-
populating a drop down with Ajax? IE problems.
I have a page with google maps up and running. When a user clicks on a location from the map I would like to populate a drop down with data from the database related to that location. I have it up and working wonderful. Well that was what I thought until I tried it is IE. All that I get is an empty drop down. I know the problem is related to filling the element with the xmlHttp.respons eText, but no matter how many solution I have tried as suggested... -
Thanks, that is what I am looking for. I want this to always be running. This is one of those time where an infinite loop can be of use. My thinking on alarm was every minute when the alarm goes off I would run my sub, sleep should work the same.
Thanks -
ok
I guess I sleep would work too.
I've been having trouble getting them to do what I want.
could you give me an example with sleep and alarm that just prints hello world every 5 seconds?
thanksLeave a comment:
-
Setting up an alarm scheduler?
I have procedure that I would like to run in perl that checks a data feed that I have running. I wrote the code to checks if the feed is up, now I would like to create an alarm that will use this code and check the feed every minute. Nothing should happen if it is up, otherwise it will send me an email.
I'm just a new to perl, could someone help me in setting up this alarm to run my code say every minute.
Thanks -
How do I remove extra white space in a string?
I am currently getting some forecast data from a web site using (file_get_conte nts), then I'm using explode to put the string in an array, which I am then parsing.
The trouble is when I use explode() are several empty elements between each full one.
Example.
Array ( [0] => this [1] => is [2] => [3] => [4] => a [5] => [6] => [7] => test )
If I print the sting before I explode... -
can oci_connect be in a function?
I have a oracle/php question
I'm moving a site from postgres/mysql to oracle.
In the past I've written a funtion for my database connection and stored it in initialize.php then I included the file on pages where I need to use the function. The function follows:
Code:function initialize() { $user= ***; $pass=***; $host=***; $db = pg_connection($user $pass $host);
-
Ok, now I feel really stupid.
You solved all my problems. Don't know how long I played this. I tried that before, but I had it typed in wrong.
thanks again.Leave a comment:
-
Form validation. Help!!!
Ok I have a form validation problem that I need one of you javascript ninja s to help me with.
The following is a form with the javascript that I have used for the last year or two to validate. It works quite nicely and I like the way it works. The problem is I am working on a site where the html needs to validate using STRICT. This form doesn't validate with STRICT because I use a name on the form and not and id. Could someone... -
How to write RegExp digits only, starting character >= 1?
I have a form where I would like to perform some validation using a javascript function. I cant' figure out the RegExp.
Code:function is_number(target) { target.value = trim(target.value); var filter = RegExp("^[help]"); if(filter.test(target.value)) return true; target.style.background = "#ffcccc"; return false; }
-
-
How to select item in dropdown after posting a form?
Ok, It has been one of those days. Here is my bump in the road.
I have an add user form for the administrator. The administrator enters name, password and then selects access level from a dropdown. When the data is posted I take the administrator to a page where all users can be viewed. I then allow the administrator to select a user in the list that they would like to edit. The administrator is taken back to the add user form, but the... -
How do I reset an array!
I have and array that I fill with elements in a function.
I call it later and want to reset it so that it is empty so I can fill it with different elements and a different number of elements. How do I reset it so that there is nothing in it? I would do it before the If statements, but I'm not sure how to reset it. Could someone help?
[code=javascript]
var imageArray;
var image_dir;
var... -
Ok, give me some credit. I had it at .png, I changed it because that wouldn't work. I want to use .png images so I'll play with it until I figure it out.
thanks for the helpLeave a comment:
-
Ok I believe I got it. Thanks again for all the help.
I had one div/id working and couldn't get the other one to work.
After a long step by step walk through the problem was that one of img sets couldn't be displayed for some reason. They were .png images. I made them .jpg images and it worked. I don't understand why .png doesn't work but that was the problem.
Do either of you know why?
...Leave a comment:
-
Ok fixed my one problem it is getElementsByNa me not getElementByNam e
I'm not receiving an error in IE but my images never appear. In Mozilla I just receive the error message every 5 seconds.
Does anyone know how to fix this.
ThanksLeave a comment:
-
I think you are on to something, but I am still having trouble
this is what I changed the function to
[code=javascript]
function switchImage(pla ce) {
var new_image = getNextImage();
var img = document.getEle mentByName(plac e)[0];
if (img) {
img.src = new_image;
} else {
//debug
alert(place);
}
//document[place].src...Leave a comment:
-
if you are using javascript to set the cookie it should be easy to get it back.
Here is a way with javascript
these are my functions
[code=javascript]
function setCookie(cooki eName, value, expiredays)
{
var ExpireDate = new Date();
ExpireDate.setT ime(ExpireDate. getTime() + (expiredays*24* 3600*1000));
document.cookie = cookieName + "=" + escape(value) + ((expiredays...Leave a comment:
-
'document[...]' is null or not an object with rotating images
What I have is a is two sets of images,(Weather , optical) there is about 30 images of is each set.
I have script that will rotate through the images on the main page.
The user is able to view one or the other img sets with a simple onclick
This works great in Mozilla but in IE I get the error document[...]null or not an object, line 95, char 4.
I've spent hours on this, but no luck.
... -
place comes from choose_id()
The value will be the cookie I store, and it will determine which img set will be used.
see the html it will be the id for weather_pic or the id for optical_picLeave a comment:
No activity results to display
Show More
Leave a comment: