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 gkittelson 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. andrewxie

    how to convert '2005-9-22 3:9:00' to 200509220309

    thanks all of you.
  2. andrewxie

    Connection to Database failed

    try this: SET password for 'user'@'localhost'=old_password('yourpassword');
  3. andrewxie

    how to convert '2005-9-22 3:9:00' to 200509220309

    by the way, anybody know built-in function in perl to convert localtime() to '200509230809' except the following function. sub convertDate { my ($varDate) = @_; if (day$(varDate) < 10) { dd = "0"day($varDate); } else { dd = day($varDate); }...
  4. andrewxie

    how to convert '2005-9-22 3:9:00' to 200509220309

    thanks both of you. they all works. have a nice day!
  5. andrewxie

    how to convert '2005-9-22 3:9:00' to 200509220309

    i use SELECT concat(YEAR(now(), MONTH(now()), DAY(now()), HOUR(now()), MINUTE(now())); return 200592239. but i want double digit hour and minute anybody knows.
  6. andrewxie

    Error executing: Query was empty

    thank you.
  7. andrewxie

    exec(&quot;mysql -uusername -ppassword &lt;'export.sql'&quot;) return nothing

    I find the problem. mysql has to be full path. thank you anyway.
  8. andrewxie

    Error executing: Query was empty

    thank you for your reply. but nothgin wrong with my $sth = $dbh->prepare($sth); I used USE strict; the sytax is correct.
  9. andrewxie

    exec(&quot;mysql -uusername -ppassword &lt;'export.sql'&quot;) return nothing

    Hi, when I run exec("mysql -uusername ppassword<'export.sql'"); on solaris9 it returns nothing. I also tried system("mysql -uusername -ppassword <'export.sql'") it return nothing. but when I run on windows xp exec("mysql -uusername -ppassword -e \"source export.sql\""); it works and returns...
  10. andrewxie

    Error executing: Query was empty

    expert, I run a perl script on solaris9. this is the script: my $sql = "SELECT produce_code, product_name INTO OUTFILE 'export.txt' from products"; my $sth = $dbh->prepare($sth); $sth->execute or die("Error executing:$DBI::errstr"); it returns error excuting: Query was empty at line 222. when I...
  11. andrewxie

    v4.1.7 ... timestamp field not updating when record modified

    did you create table like this? CREATE TABLE t ( ts1 TIMESTAMP DEFAULT 0, ts2 TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
  12. andrewxie

    when download file, permission denied. but file is 0777 mod

    thank unix junky. I found the problem. the log file write permission denied.
  13. andrewxie

    when download file, permission denied. but file is 0777 mod

    unix junky, I checked the group permissions. they are r-x the read and excute permission. I even used command #chmod -R 777 uploaddir, still can't open the file, but one thing confusing me is I can delete the file from broswer.
  14. andrewxie

    when download file, permission denied. but file is 0777 mod

    Hi, all, I have a website run solaris9 using apache that come with solaris9. I use perl as cgi script. I want to upload files from browser and download file from browser also. right I can upload file and set directory mod777 using perl upload script. but when I download the file, server can't...

Part and Inventory Search

Back
Top