hello my Daniweb friend
i'm trying to get data from database where only users is connect so i user this code i get a errot on navigator
i got this errot on navigator :
Parse error: syntax error, unexpected '=', expecting ',' or ')' in /homepages/0/*/htdocs/domainname.com/*/*.php on line 145
this is the code
<?php
$idSession_order = "0";
if (isset($_SESSION=['MM_Username'])) { // here is the line 145
$idSession_order = $_SESSION=['MM_Username'];
}
mysql_select_db($database_marketbase, $marketbase);
$query_order = sprintf("SELECT * FROM commande WHERE commande.client=%s ORDER BY commande.`date` DESC", GetSQLValueString($idSession_order, "text"));
$order = mysql_query($query_order, $marketbase) or die(mysql_error());
$row_order = mysql_fetch_assoc($order);
$totalRows_order = mysql_num_rows($order);
mysql_select_db($database_marketbase, $marketbase);
$query_order = "SELECT * FROM commande WHERE client = ['MM_Username'] ORDER BY commande.`date` DESC";
$order = mysql_query($query_order, $marketbase) or die(mysql_error());
$row_order = mysql_fetch_assoc($order);
?>