Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Apr 2004
    Location
    Philadelphia
    Posts
    241
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Arrow Debug Super Simple Script..

    PHP Code:
    <?php
    $zone
    =3600*-5
    $USAdate
    =gmdate(M d Y H:i:stime() + $zone);
    $Name = &$_POST['Name']; //This Is Where The Server Says The Problem Is..
    $Email = &$_POST['Email']; //Assuming That One Is Wrong...
    $Title = &$_POST['Title']; //Probably Every One Of These Is Wrong..
    $Date = &$USAdate;
    $Info = &$_POST['Info'];
    $Rating = &$_POST['Rating'];
    If(!empty(
    $_POST['EmailPublic'])){
    $Public "Yes";
    }else{
    $Public "No";
    }
    ?>
    ((CommEnts Explain MuCh))
    Last edited by As5a5sIn5; 06-09-2004 at 04:39 AM.

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how about putting?
    $zone=3600*-5;

  • #3
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,095
    Thanks
    11
    Thanked 101 Times in 99 Posts
    ...& then

    $USAdate=gmdate(' M d Y H:i:s' , time() + $zone);



    after those 2 , is there a reason you are referencing the $_POST variables? if so fine , if not then don't bother.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #4
    Regular Coder
    Join Date
    Apr 2004
    Location
    Philadelphia
    Posts
    241
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Thanks SQL Works!
    New Problem though...Why Doesn't the date in MySQL...They all say
    0000-00-00 00:00:00
    As the date/time...any suggestions?

  • #5
    Regular Coder
    Join Date
    Apr 2004
    Location
    Philadelphia
    Posts
    241
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Is it becuase it has 2 b in the mysql format?....i jus thought of that...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •