mira esta seria la pagina index de cada usuario registrado:
   
Código HTML:
Ver original<?php require_once('../../Connections/blueberryswebtiendas.php'); ?>
<!--aqui hemos creado el juego de registro y el repetir region de los productos-->
<?php
 
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }
 
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
 
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}
 
$maxRows_listadoproductos = 2;
$pageNum_listadoproductos = 0;
if (isset($_GET['pageNum_listadoproductos'])) {
  $pageNum_listadoproductos = $_GET['pageNum_listadoproductos'];
}
$startRow_listadoproductos = $pageNum_listadoproductos * $maxRows_listadoproductos;
 
mysql_select_db($database_blueberryswebtiendas, $blueberryswebtiendas);
$query_listadoproductos = "SELECT * FROM productos";
$query_limit_listadoproductos = sprintf("%s LIMIT %d, %d", $query_listadoproductos, $startRow_listadoproductos, $maxRows_listadoproductos);
$listadoproductos = mysql_query($query_limit_listadoproductos, $blueberryswebtiendas) or die(mysql_error());
$row_listadoproductos = mysql_fetch_assoc($listadoproductos);
 
if (isset($_GET['totalRows_listadoproductos'])) {
  $totalRows_listadoproductos = $_GET['totalRows_listadoproductos'];
} else {
  $all_listadoproductos = mysql_query($query_listadoproductos);
  $totalRows_listadoproductos = mysql_num_rows($all_listadoproductos);
}
$totalPages_listadoproductos = ceil($totalRows_listadoproductos/$maxRows_listadoproductos)-1;
?>
 
 
 
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="estiloplantilla.css" rel="stylesheet" type="text/css" />  
  <div id="cabecera">Colocar aquí el contenido para  id "cabecera"
</div>  
<div id="menu">Colocar aquí el contenido para  id "menu"
</div>   <p>Productos de mi tienda:
</p>  
 <!--aqui del do hasta el while repetimos region para que se muestren los productos--> 
  <?php do { ?>
    <table width="168" height="173" border="1" align="center">         <td width="158" align="center"><a href="detalle_producto.php?producto_id=<?php echo $row_listadoproductos['producto_id']; ?>">
<img src="productos/<?php echo $row_listadoproductos['foto_producto']; ?>" width="134" height="91" />
</a></td>         <td height="23" align="center"><?php echo $row_listadoproductos['nombre_producto']; ?></td>         <td align="center"><?php echo $row_listadoproductos['precio_producto']; ?></td>     <?php } while ($row_listadoproductos = mysql_fetch_assoc($listadoproductos)); ?>
<div id="pie">Colocar aquí el contenido para  id "pie"
</div> <?php
mysql_free_result($listadoproductos);
?>
  
esta la pagina a través de la que se accede el usuario registrado     
Código HTML:
Ver original<?php require_once('../Connections/blueberryswebtiendas.php'); ?>
<?php
if (!isset($_SESSION)) {
  session_start();
}
 
$MM_authorizedUsers = "admin,user,premium";
$MM_donotCheckaccess = "false";
 
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
  // For security, start by assuming the visitor is NOT authorized. 
  $isValid = False; 
 
  // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
  // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
  if (!empty($UserName)) { 
    // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
    // Parse the strings into arrays. 
    $arrUsers = Explode(",", $strUsers); 
    $arrGroups = Explode(",", $strGroups); 
    if (in_array($UserName, $arrUsers)) { 
      $isValid = true; 
    } 
    // Or, you may restrict access to only certain users based on their username. 
    if (in_array($UserGroup, $arrGroups)) { 
      $isValid = true; 
    } 
    if (($strUsers == "") && false) { 
      $isValid = true; 
    } 
  } 
  return $isValid; 
}
 
$MM_restrictGoTo = "../../controlclientes/errorentrada.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
  $MM_qsChar = "?";
  $MM_referrer = $_SERVER['PHP_SELF'];
  if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
  if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) 
  $MM_referrer .= "?" . $QUERY_STRING;
  $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
  header("Location: ". $MM_restrictGoTo); 
  exit;
}
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }
 
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
 
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}
 
$colname_tienda = "-1";
if (isset($_GET['MM_Username'])) {
  $colname_tienda = $_GET['MM_Username'];
}
mysql_select_db($database_blueberryswebtiendas, $blueberryswebtiendas);
$query_tienda = sprintf("SELECT * FROM tienda WHERE tienda = %s", GetSQLValueString($colname_tienda, "text"));
$tienda = mysql_query($query_tienda, $blueberryswebtiendas) or die(mysql_error());
$row_tienda = mysql_fetch_assoc($tienda);
$totalRows_tienda = mysql_num_rows($tienda);
 
$colname_listadoproductos = "-1";
if (isset($_GET['tienda'])) {
  $colname_listadoproductos = $_GET['tienda'];
}
mysql_select_db($database_blueberryswebtiendas, $blueberryswebtiendas);
$query_listadoproductos = sprintf("SELECT * FROM productos WHERE tienda = %s", GetSQLValueString($colname_listadoproductos, "text"));
$listadoproductos = mysql_query($query_listadoproductos, $blueberryswebtiendas) or die(mysql_error());
$row_listadoproductos = mysql_fetch_assoc($listadoproductos);
$totalRows_listadoproductos = mysql_num_rows($listadoproductos);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="estilo1.css" rel="stylesheet" type="text/css" /> <link href="../estilo1.css" rel="stylesheet" type="text/css" />  
  <div id="cabecera">Colocar aquí el contenido para  id "cabecera"
</div>  
<div id="menu">Colocar aquí el contenido para  id "menu"
</div>   <p>Nombre de tu tienda: 
<?php echo $_SESSION['MM_Username'] ?> </p>   <p>Vista previa de la tienda 
<a href="http://www.forosdelweb.com/f18/webtiendas/<?php echo $_SESSION['MM_Username']; ?>/index.php" target="_blank">aqui
</a></p> <div id="pie">Colocar aquí el contenido para  id "pie"
</div> <?php
mysql_free_result($tienda);
 
mysql_free_result($listadoproductos);
?>
  
pero claro la pagina index debe poder verla todo el mundo por lo tanto las imágenes también por eso no siempre se debe poder acceder a inicio desde la pagina de acccesousuarios me explico bien, jejeje es que me quede hay ya hace días