I dont think i am able to use this code in the way i added the data into my database.
When i implemented the code above, i get no results.
Code:
<?php
mysql_connect("");
mysql_select_db("");
$type = addslashes($HTTP_POST_VARS["type"]);
$poster =addslashes($HTTP_POST_VARS["poster"]);
$during = addslashes($HTTP_POST_VARS["during"]);
$time =$HTTP_POST_VARS["hiddenField"];
$timeRef =$HTTP_POST_VARS["hiddenField2"];
$preTime =$HTTP_POST_VARS["hiddenField3"];
$query ="INSERT INTO ws (type,during,poster,time,timeRef,preTime)";
$query.="VALUES ('$type','$during','$poster','$time','$timeRef','$preTime')";
$result=mysql_query($query);
if ($result) echo "<b>Successfully Posted!</b>";
else echo "<b>ERROR: unable to post.</b>";
?>
<p><a href="index.php">Click Here to View</a></p>
And when calling for the information on the main page it is sorted by $time which is in the form of,
Code:
$today = date("l, F j, Y. g:i A");
Bookmarks