User Profile

Collapse

Profile Sidebar

Collapse
alexsts2013
alexsts2013
Last Activity: Jun 10 '13, 05:40 PM
Joined: Jun 10 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • alexsts2013
    replied to Updating database
    in PHP
    try this:
    Code:
    $strSQL = "UPDATE admin SET ";  
    $strSQL .="surname = '".$_POST["surname"]."'";  
    $strSQL .=",othernames = '".$_POST["othernames"]."'";  
    $strSQL .=",gender = '".$_POST["gender"]."' ";  
    $strSQL .=",username = '".$_POST["username"]."'";  
    $strSQL .=",password =
    ...
    See more | Go to post
    Last edited by alexsts2013; Jun 10 '13, 04:58 PM. Reason: additional data needed

    Leave a comment:


  • Reading Scheduled task history in batch script

    Guys,
    does anyone know how to read history of scheduled tasks in Windows 2008 R2 using batch file or any kind of script?
    In windows 2003 it was easy but this Win2008 is a mess in that terms.
    Besides multiple permissions issues running schedule, now it is not allow to read history at all to single known to me scripts.
    Any ideas?
    Thanks
    See more | Go to post

  • alexsts2013
    replied to Updating database
    in PHP
    Also replace
    Code:
    "' "
    with following

    Code:
    "'"
    Except last one ($_POST["password"]."' "; ) because on front of where clause you will need space like " where"; right now if you look at print of your $strSQL you will see some pretty ugly string.
    Use my suggestion and it will look much better and fix syntax errors as well.
    See more | Go to post

    Leave a comment:


  • alexsts2013
    replied to Updating database
    in PHP
    try to replace
    Code:
     $strSQL = "UPDATE admin SET ";  
    $strSQL .=",surname = '".
    with following
    Code:
     $strSQL = "UPDATE admin SET ";  
    $strSQL .="surname = '".
    See more | Go to post

    Leave a comment:


  • creating log file with content from HTTP post/responce

    Hi,
    can someone lend a hand or idea how to create log file in specific location from following:

    Code:
    #!/usr/bin/perl
    use LWP::UserAgent;
    use File::Slurp;
    use warnings;
    use strict;
    
    my $ua = LWP::UserAgent->new;
    $ua->timeout(10);
    
    my ($second, $minute, $hour, $dayOfMonth, $month, $yearOffset, $dayOfWeek, $dayOfYear, $daylightSavings) = localtime();
    ...
    See more | Go to post

  • alexsts2013
    started a topic Creating logfile with content from HTTP post
    in Perl

    Creating logfile with content from HTTP post

    Hello,
    sorry for probably repeating question but in all posting I see that log file get created from reading existing file.
    I need to create log file and post to it data from HTTP Post response.
    My code look like this:
    Code:
    #!/usr/bin/perl
    use LWP::UserAgent;
    use File::Slurp;
    use warnings;
    use strict;
    
    my $ua = LWP::UserAgent->new;
    $ua->timeout(10);
    
    my ($second,
    ...
    See more | Go to post
    Last edited by Frinavale; Jun 11 '13, 08:42 PM. Reason: Fixed code tags and spelling errors.
No activity results to display
Show More
Working...