...

View Full Version : Debug Super Simple Script..



As5a5sIn5
06-09-2004, 04:02 AM
<?php
$zone=3600*-5
$USAdate=gmdate(M d Y H:i:s, time() + $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))
:confused:

Garadon
06-09-2004, 06:48 AM
how about putting?
$zone=3600*-5;

firepages
06-09-2004, 08:39 AM
...& 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.

As5a5sIn5
06-09-2004, 08:32 PM
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? :D

As5a5sIn5
06-09-2004, 09:46 PM
Is it becuase it has 2 b in the mysql format?....i jus thought of that...
:o



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum