Hello everybody
I need to make a link on a php page using php
I have this code
$result = mysql_query ($sql);
while ($row = mysql_fetch_row($result))
{
if ( $item == 0 ) { $_firstext = $row[1]; }
if ( $item == 0 ) { $_primafoto = $row[0]; }
if ( $item == 0 ) { $_primolink = $row[0]; }
echo "photos[".$item."]=\"provalink/".$row[0].".jpg\";";
echo "text[".$item."]=\"".$row[1]."\";";
echo "link[".$item."]=\"<a href='[0].".jpg'\";</a>";
$item=$item+1;
}
}
?>
Unfortunately it doesn't work. Does anybody knows if the line
echo "link[".$item."]=\"<a href='[0].".jpg'\";</a>";
...is correctly coded? Cause the error is there,
bye
I need to make a link on a php page using php
I have this code
$result = mysql_query ($sql);
while ($row = mysql_fetch_row($result))
{
if ( $item == 0 ) { $_firstext = $row[1]; }
if ( $item == 0 ) { $_primafoto = $row[0]; }
if ( $item == 0 ) { $_primolink = $row[0]; }
echo "photos[".$item."]=\"provalink/".$row[0].".jpg\";";
echo "text[".$item."]=\"".$row[1]."\";";
echo "link[".$item."]=\"<a href='[0].".jpg'\";</a>";
$item=$item+1;
}
}
?>
Unfortunately it doesn't work. Does anybody knows if the line
echo "link[".$item."]=\"<a href='[0].".jpg'\";</a>";
...is correctly coded? Cause the error is there,
bye