ho questo script:


<?php
session_start();
?>
<html>
<head>

<body onLoad="setTimeout('document.step1.submit();', 3000);">
<form name="step1" action="step1.php" method="get">
<title>Step1foto</title>
</head>
<?php


$connessione=mysql_connect('localhost', );
$selezione_db=mysql_select_db("guest_book", $connessione);
$query = mysql_query("SELECT id_user, date FROM messaggi ORDER BY date DESC limit 1");


while($riga = mysql_fetch_assoc($query))
{
$id_user = $riga['id_user'];
echo $riga["id_user"];
}
$nr_immagine = ($id_user - 1) * 10 + 1 + $offset; $directory = "http://localhost/fotos/";
$image_src = $directory . "image" . $nr_immagine . ".jpg";

echo "<img src=\"$image_src\">";
if($offset < 50) {
$offset++; }
?>

859
Notice: Undefined variable: offset in c:\programmi\easyphp1-8\www\step1foto.php on line 24

Notice: Undefined variable: offset in c:\programmi\easyphp1-8\www\step1foto.php on line 28

Notice: Undefined variable: offset in c:\programmi\easyphp1-8\www\step1foto.php on line 29



vorrei far si che si richiamino delle immagini che sono in : "localhost/fotos/ numerate da 1 a 10 in base al numero di id_user di ciascun utente.

vorrei che per l'utente con id_user = 1,11,21,31,41...ecc venissero richiamate le foto di questa directory, mentre per quelli con id_user 2,22,32,42...ecc, una seconda directory di foto
e cosi' via per tutti i numeri da 0 a 9.