naskoo
-
Posts
13 -
Joined
-
Last visited
Never
Posts posted by naskoo
-
-
Hi,
I need to load a *.csv file in a bzip2 archive from a remote server to my database. Is there any option to decompress the archive and read the data from the csv file just with mysql. Something like:
LOAD DATA LOCAL INFILE 'http://example.com/Destinations.csv.bz2' INTO TABLE `csv_test` FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'
Or I need to decompress the bz2 to temp *.csv, read the *.csv and add the data to the DB.
Thanks in advance!
Regards
Nasko
-
Sorry I have a little bit difficulties because of my English . When you reply my about the missed tags I realized that I didn't check for loaded document. So I tried to make it this way:
<script type="text/javascript" src="js/jquery-1.3.js"></script> <script type="text/javascript"> $(function(){ $("input#submit").hide(); var i=1; $("a#add").click(function(){ $(this).before('<p id="added' + i + '"><input type="file" name="file_' + i + '" id="fileupload"/>  <a href="nofile.html" id="remove">[remove]</a></p>'); if (i==1) { $("input#submit").show(); //console.log($("a#remove").parent().get(0)); } i++; return false; }); $("a#remove").click(function(){ $parent = $(this).parent().get(0); $parent.remove(); return false; }); }); </script> </head> <body> <form enctype="multipart/form-data" action="#" method="POST" id="multiForm"> <div id="content"> <strong><span id="regular_text">Select files ot upload:</span></strong><br /> <!--<input type="file" name="file_1" id="fileupload"/><br />--> <a href="index.php" id="add">[add file]</a><br /> <input type="submit" value="Upload Files" id="submit"/><br /> <input type="hidden" name="status" value="1" /> </div> </form> </body>
And now I can not manage with the remove(); It still redirects me and does not executes the $parent.remove(); Any ideas?
Regards
Nasko
-
SOLVED!
When I added and the </label>. Shame on me . It was more then HTML then JS problem. Sorry about the stupid desturb.
Why when I can not call the remove like this
$("a#remove").click(function(){
$("#added").remove();
return false;
});
for example. It still redirects me and do nothing.
Regards
Nasko
-
you HTML in the addFormField() function was bad. you didn't have a </label> and more imporantly, you had a <p> at the end instead of </p>
Fixed and it's still does not work ?!?
Regards
-
hi,
I have some problems with removing elements using jquery at IE. I red an tutorials about it, check at the documentations and seems to be OK but NOT! The funny think is that when I'm using jquery-1.0.1 it works perfect, but with any of the last releases it does not. I'll be verry happy if some tells me how to figure that out.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Test jQuery</title> <script type="text/javascript" src="jquery-1.3.js"></script> <script type="text/javascript"> function addFormField() { var id = document.getElementById("id").value; $("#divTxt").append("<p id='row" + id + "'><label for='txt" + id + "'>Field " + id + " <input type='text' size='20' name='txt[]' id='txt" + id + "'>  <a href='#' onClick='removeFormField(\"#row" + id + "\"); return false;'>Remove</a><p>"); id = (id - 1) + 2; document.getElementById("id").value = id; } function removeFormField(id) { $(id).remove(); } </script> <body> <p><a href="#" onClick="addFormField(); return false;">Add</a></p> <form action="#" method="get" id="form1"> <input type="hidden" id="id" value="1"> <div id="divTxt"></div> <p><input type="submit" value="Submit" name="submit"> <input type="reset" value="Reset" name="reset"></p> </form> </body> </html>
Thanx in advance
Nasko
-
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]if($check == "1"){
echo"one!";
} else {
echo"something else!";
} [/quote]
$_GET['check'] == "1" !!! -
make it daemon in Linux or shedule task in windows ...
-
re
anyone can help me with this ??? -
sit and read some articls for Object Oriented Programing (OOP) and u'll see what it means
-
OK guys i'm tring to make a admin panel with username password and certificate validation but cannt find any info r HOW TOs. any sugestions and directions r wellcome!
10x -
[a href=\"http://www.phpfreaks.com/tutorials/44/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/44/0.php[/a]
-
how to install a MSSQL server 2000 on windows xp profesional. it sends me a unsuported OS?
Need to get info from last record
in MySQL Help
Posted