Salve a tutti, una domanda posto il codice php
ce qualcosa che non quadra dopo
//get seller name for ecom.php
Potrete darci un'occhiata perfavore?
ce qualcosa che non quadra dopo
//get seller name for ecom.php
Potrete darci un'occhiata perfavore?
PHP:
<?
#// Set document direction (set in includes/messages.XX.inc.php)
#// Can be right-to-left (rtl) or left-to-roght (ltr)
if($DOCDIR != 'rtl') {
print " <HTML dir=ltr>";
} else {
print "<HTML dir=ltr>";
}
mysql_query("SET CHARACTER_SET_CLIENT=utf8");
mysql_query("SET character_set_server=utf8");
mysql_query("SET character_set_results=utf8");
mysql_query("SET character_set_database=utf8");
mysql_query("SET character_set_connection=utf8");
mysql_query("SET collation_server=utf8");
mysql_query("SET collation_database=utf8");
mysql_query("SET collation_connection=utf8");
#// Build the page width string
$PAGEWIDTH = $SETTINGS['pagewidth'];
if($SETTINGS['pagewidthtype'] == 'perc') $PAGEWIDTH .= "%";
if ($HTTPS == '1' || $HTTPS == 'on') {
$SITEURL = $Https['httpsurl'];
$SETTINGS['siteurl'] = $Https['httpsurl'];
} else {
$SITEURL = $SETTINGS['siteurl'];
$SETTINGS['siteurl'] = $SETTINGS['siteurl'];
}
if(isset($_SESSION['PHPAUCTION_LOGGED_IN'])){
$query="SELECT balance FROM PHPAUCTIONXL_users WHERE id=".intval($_SESSION['PHPAUCTION_LOGGED_IN']);
$r__=@mysql_query($query);
if(!$r__) {
MySQLError($query);
exit;
} else {
$result=mysql_fetch_assoc($r__);
$balance = $result['balance'];
}
}
//get seller name for ecom.php
if(substr_count($_SERVER[REQUEST_URI],'ecom.php')>0){
if(isset($_GET['sid'])){
if ($_GET['sid']>0){
$query = "SELECT name,logo FROM PHPAUCTIONXL_users WHERE id=".$_GET['sid'];
$result = mysql_query($query);
if(!$result) {
MySQLError($query);
exit;
} else {
$seller_name = mysql_result($result, 0, "name");
if (isset($seller_name)){
$seller_name = " - ".$seller_name;
$logo_file = mysql_result($result, 0, "logo");
}}}}}
?>
Ultima modifica di un moderatore: