User Profile

Collapse

Profile Sidebar

Collapse
amanjsingh
amanjsingh
Last Activity: Dec 14 '09, 09:33 PM
Joined: Mar 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • No. It still stands unresolved....
    See more | Go to post

    Leave a comment:


  • amanjsingh
    replied to Add/Subtract Date/Time
    Awesome! Thanks a lot....
    See more | Go to post

    Leave a comment:


  • amanjsingh
    started a topic Add/Subtract Date/Time

    Add/Subtract Date/Time

    Hi,

    I have a Database (MSSQL) with some tables having multiple Time columns (which I imported from some Access DB).

    The DateTime format in the MSSQL is
    Code:
    1899-12-30 02:30:00.0
    format. I populate my web forms using these columns (start time etc.) My problem is I cannot seem to add subtract time. I only need time part and I can use TimeFormat() function but I cannot seem to add time.

    Can coldfusion deal with...
    See more | Go to post

  • amanjsingh
    started a topic DATETIME - Time only needed

    DATETIME - Time only needed

    Hi,

    I'd like to know how to delete Date part of the DATETIME in SQL Server. I currently have 12/30/1899 12:30:00 AM sort of values in the DB and would like have or use only the Time part.

    Thanks
    AJ
    See more | Go to post

  • amanjsingh
    replied to Empty form data with POST
    in PHP
    Works like a charm. :)

    Why was I missing this?

    Thanks a lot Ronald.

    Best,
    AJ...
    See more | Go to post

    Leave a comment:


  • amanjsingh
    replied to Empty form data with POST
    in PHP
    I just tried your way on the second form which has appName...
    Please note that the appName is not being passed at all in FF.

    Code:
    Array
    (
        [appName] => 
        [username] => fdghdhd
        [pass] => dgdgh
        [update] => Submit
    )


    Whereas in IE, the output was -
    Code:
    Array
    (
        [appName] => testing_gendb
        [username]
    ...
    See more | Go to post

    Leave a comment:


  • amanjsingh
    replied to Empty form data with POST
    in PHP
    Ronald, wow. you take a lot of effort. I am really amazed. :)

    I can very well get the output of methodUI to the next page where using methodUI value I will create a form depending on the value of methodUI. I can very well get to the part where methodUI is being passed successfully and the appropriate form is being generated on the next level. But for

    Code:
    methodUI=="1"
    I have a dropdown list from...
    See more | Go to post

    Leave a comment:


  • amanjsingh
    replied to Empty form data with POST
    in PHP
    Thanks for the response ronverdonk

    DB details are correct.

    This form is displayed on the basis of a value (methodUI) from a previous form which either sends a "1" or a "2". It is basically a dropdown list where user selects on of the two choices. Based on that, on the next page, respective form is showed.

    This is working fine in IE but not in FF.

    Code:
    <form method="post"
    ...
    See more | Go to post

    Leave a comment:


  • amanjsingh
    replied to Empty form data with POST
    in PHP
    Code:
    <?php
    
    if ($_POST['methodUI'] == "1") {
    $link = mysql_connect('DB details);
    if (!$link) {
        die('Could not connect: ' . mysql_error());
    }
    mysql_select_db('app_pw_container');
    $query="SELECT pkey_app_name FROM main_up";
    $result=mysql_query($query);
    
    echo '<form method="post" action="update.php" name="form2">';
    ...
    See more | Go to post

    Leave a comment:


  • amanjsingh
    replied to Empty form data with POST
    in PHP
    I have a similar issue...when using IE 6 variable is displayed but it sends a "" when using Firefox. Both under Windows 2000/XP

    Any solutions to this problem would be highly appreciated.

    Thanks
    AJ...
    See more | Go to post

    Leave a comment:


  • Oh, that means change all the files anyways. I hoped there was an easy solution. thanks a lot for your help. No issues with the syntax, with so many languages it has become a pain anyways to learn that....
    See more | Go to post

    Leave a comment:


  • amanjsingh
    replied to mkdir issue with Windows Server 2003
    in PHP
    I have had this problem too but I could not find any solution. I always had asked this question that if a script is trying to output a file or directory what user would that be? So, that I can give that user permissions etc to do this.

    Somehow my script has started working fine and I feel that if you set the particular directory settings to all permissions then it gets better.

    Also, please note that I had to put the...
    See more | Go to post

    Leave a comment:


  • amanjsingh
    replied to How to create anti spam Image
    in PHP
    I do not like captchas anyways but there can be a good way to have a dynamically moving (animated) background generated on the fly with some random text in front.

    But as Gurus here already said (and I agree) there are better ways other than captchas. Captchas just irritate people.
    See more | Go to post

    Leave a comment:


  • amanjsingh
    replied to Include_once( ) strange error
    in PHP
    Yes, I am sorry. After a long and tedious inspection I figured out that the original file had variables set before the classes. I think that is a problem.
    See more | Go to post

    Leave a comment:


  • Show an advisory "Going to External Link" while the user is going out of my domain

    Hi,

    I have my website and want to perform this functionality most likely using PHP. Please note that the website is huge and manual editing of pages is not possible.

    Is there a quick solution tom implement an advisory or an intermediate message like "You are not leaving www.xxxxx. domain and going to external website" when a user clicks on any "external" link on my website?

    Thanks,...
    See more | Go to post

  • amanjsingh
    replied to Include_once( ) strange error
    in PHP
    I do not have reporting on. I use var_dump(). No the spellings are ok too. This happens only to a few files. Rest of the includes are working well....
    See more | Go to post

    Leave a comment:


  • amanjsingh
    started a topic Include_once( ) strange error
    in PHP

    Include_once( ) strange error

    I have multiple applications on my website. So, there is a master config file and then there are multiple local config files for individual apps. There is a strange problem though,

    In 3 applications I am doing include_once of the master_config.p hp. If I run the local config file which has master_config.p hp, I can see the variable dumps I have to import. But when I use the local config.php in my application (say index.php), the variable...
    See more | Go to post

  • amanjsingh
    replied to PHP Class Trouble
    in PHP
    Well, I came to know that base class constructor does not automatically pass to the derived class. So I put my username and password in a class in some different file. Included this file in the dat.php and in the constructor of the class DB{} I used this =
    Code:
    class DB extends DB_p {
    
    function DB {
    parent::DB_p();
    }
    }
    Any suggestions if this secure?

    Thanks
    AJ
    See more | Go to post

    Leave a comment:


  • amanjsingh
    started a topic PHP Class Trouble
    in PHP

    PHP Class Trouble

    I am new to OOPS esp in PHP and I am stuck here -

    I have a file called dat.php which has a class defined in it. This class has usual functions for database connectivity and error reporting if not connected etc. I use this file anywhere in my application I want to connect to my database.

    The constructor is

    Code:
    	function DB {
           $this->host = 'XXXXXXXX';
           $this->user = 'XXXXXXXX';
    ...
    See more | Go to post

  • So is it possible to block the IP address or visit anonymously?...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...