I havetwo question left why or can i get a entry in the mysql that look like this
2003-05-13-0816-55
Instead of
20030513081655
And the other thing is this code i need help with getting a echo date time and on on after <h1><b>User registered!</b></h1>
<html>
<head>
<title>W W W . F L A M E L I N E . C O M</title>
<link rel="stylesheet" type="text/css" href="style/forms.css" title="style" TYPE="text/css">
</head>
<BODY BGCOLOR="#50538D" TEXT="#A8A8A8" TOPMARGIN=0 LEFTMARGIN=0 link=white alink="white" vlink="white">
<table border=0 cellpadding=0 cellspcing=0 width="100%" height="100%">
<tr>
<td valign="top" height="100%"><img src="img/flameline.gif" border=0 width="382" height="28">
<h1><b>User registered!</b></h1>
<?php
If i wont to echo the time that the new user just been registerd in the the sight.
should it look like this then!
<?php
$datetime = $row["regdate"];
$year = substr($datetime,0,4);
$mon = substr($datetime,4,2);
$day = substr($datetime,6,2);
$hour = substr($datetime,8,2);
$min = substr($datetime,10,2);
$sec = substr($datetime,12,2);
$registerdate = date("d.m.y @ g:i a",
mktime($hour,$min,$sec,$mon,$day,$year));
echo $registerdate;
?>
<p>
<font size="1" face="verdana">
Firstname: <?php echo $POST["firstname"]; ?>
<br>
Lastname: <?php echo $POST["lastname"]; ?>
<br>
Gender: <?php echo $POST["gender"]; ?>
<br>
Birth: <?php echo $POST["birthdate"]; ?>
<p>
Nickname: <?php echo $POST["nickname"]; ?>
<br>
E-mail: <?php echo $POST["email"]; ?>
<?php
$firstname=$POST["firstname"];
$lastname=$POST["lastname"];
$birthdate=$POST["birthdate"];
$gender=$POST["gender"];
$email=$POST["email"];
$nickname=$POST["nickname"];
$password=$_POST["password"];
mysql_connect (localhost, root, *******);
mysql_select_db (flameline);
mysql_query ("INSERT INTO table_members (firstname, lastname, birthdate, gender, email, nickname, password) VALUES ('$firstname','$lastname','$birthdate','$gender','$email', '$nickname', '$password')");
?>
</font>
</td>
</tr>
</table>
</body>
</html>