Hi folks,
my script looks something like this:
$sqlab = "select * from $tabelle";
$sqlab .= " where name like '$anf%' ";
$sqlab .= " order by name ";
$res = mysql_query($sqlab);
$num = mysql_num_rows($res);
if ($num != "0") {
for ($i=0; $i<$num; $i++)
{
$nn = mysql_result($res, $i, "name");
$yr = mysql_result($res, $i, "year");
$ix = mysql_result($res, $i, "indices");
//echo "&variable=$nn $yr $ix";
$anf is a value sent by another script. For each of the rows in the for-loop, I would like to save the whole output into one variable. The "&variable= ..." I used only displays the last line from the rows. How can I do otherwise?
Yours,
Isabella