Hi,
You can use this :
[PHP]$timeval = date('H:i');[/PHP]
This wil produce the time in HH:MM
In the mysql database define the field as "time" data type
Hope this helps
Regards
Sumeet
User Profile
Collapse
-
Hi,
I m using PHP Version 5.2.5 and it is working for, and this is what i did in every page i include
[PHP]session_start() ;
if ($_SESSION['username'] == '')
{
include "loginerror.php ";
die;
exit;
break;
}
$username = $_SESSION['username'];[/PHP]
My login.php has this
[PHP]$username = $_POST[username];
...Leave a comment:
-
Hello,
You may create a mysql.php file that will store your connection information and then add this file mysql.php to the guestbook.php which contains the form
mysql.php file
[PHP]<?
$server = 'localhost';
$database = 'guestbook';
$username = 'root';
$password = 'root';
$connection = mysql_connect($ server,$usernam e,$password);
if (!$connection)...Leave a comment:
-
Hi,
If you are using Windows XP or Windows 2003 you will need to install SMTP service, however if you set you ip address as 127.0.0.1 or localhost, Hotmail,Yahoo and Gmail will reject your email that is sent out from your pc
You will find your rejected mail in
C:\Inetpub\mail root\Badmail
Subject: Delivery Status Notification (Failure)
This is a MIME-formatted...Leave a comment:
-
I m not sure what "ilikephp" is after but hope this can help him
For example :
I have purchase table that has 4 fields :
Id,Quantity,Pri cePerItem, TotalCost
[PHP]<?
$sql = "SELECT * FROM purchase order by id";
$result = mysql_query($sq l);
echo "<TABLE borderColor=#cc cccc cellSpacing=0 cellPadding=0 align=center border=1>...Leave a comment:
-
So we create a variable to contain a space character as well:
$Space = " ";
You should note that this quite different from having an empty string. An empty string contains nothing at all, while a string with a space contains a character, albeit an invisible one. Spaces of course can be concatenated just like any other text:
$Car = $CarType . $Space . $EngineSize;
This would produce...Leave a comment:
No activity results to display
Show More
Leave a comment: