Display Data from session variable
Here is my code.. I'm not sure if there is easyier way of doing this or not.. but pretty much what im looking to do is display the user invoice from a session variable.. the session variable would be MM_Username.
$colname_curinvoice = "-1";
if (isset($_SESSION['MM_Username'])) {
$colname_curinvoice = $_SESSION['MM_Username'];
}
mysql_select_db($database_ff, $ff);
$query_curinvoice = sprintf("SELECT * FROM onrental WHERE `user` = %s", GetSQLValueString($colname_curinvoice, "text"));
$curinvoice = mysql_query($query_curinvoice, $ff) or die(mysql_error());
$row_curinvoice = mysql_fetch_assoc($curinvoice);
$totalRows_curinvoice = mysql_num_rows($curinvoice);
26 Minutes
Discussion Span
Related Article: Help with contact form and session variable.
is a PHP discussion thread by Kunal Aggarwal that has 2 replies, was last updated 1 year ago and has been tagged with the keywords: contact, form, login, php, session, variable.
xbat
Junior Poster in Training
83 posts since Jun 2012
Reputation Points: -4
Solved Threads: 0
Skill Endorsements: 0
I fingered it out it was
session start
Turns out somewhere in the header it was getting closed out.
xbat
Junior Poster in Training
83 posts since Jun 2012
Reputation Points: -4
Solved Threads: 0
Skill Endorsements: 0