Forum Moderators: coopster
Here is my script can anyone help?
<?php
mysql_select_db($database_DBconnect, $DBconnect);
$query_displayUsersName = "SELECT first_name FROM `user`";
$displayUsersName = mysql_query($query_displayUsersName, $DBconnect) or die(mysql_error());
$row_displayUsersName = mysql_fetch_assoc($displayUsersName);
$totalRows_displayUsersName = mysql_num_rows($displayUsersName);
?>
$username = $_SESSION['MM_Username'];
$query_displayUsersName = "SELECT first_name FROM `user` WHERE username = '$username'";
-----------------------------
Hey since I got you here, do you know of anyway to display the date using the set PHP date function and modifying it to display my time. (i.e. my server is in california and I'm on the east coast)
Thanks,
$time_offset = -2; // Represented in hours
// 60 seconds in a minute, 60 minutes in an hour:
$two_hours_ago = date [php.net]('H:i:s', time() [php.net] + (60 * 60 * $time_offset));
print $two_hours_ago;