0

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);
1
Contributor
1
Reply
2
Views
4 Years
Discussion Span
Last Post by xbat
0

I fingered it out it was

session start

Turns out somewhere in the header it was getting closed out.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.