Hey
I've just started to write php scripts, and i wouldn't know what's wrong with the next one.
<?
$host = "localhost"
$user = "lyrics"
$password = "*****"
mysql_connect($host,$user,$password);
$letter = "".substr($HTTP_GET_VARS["letter"], 0, 2000)."";
@mysql_select_db("lyrics") or die( "Unable to select database");
$query = "select from artiesten where letter = '$letter'";
$result=mysql_query($query);
mysql_close();
/Display Results/
$num=mysql_numrows($result);
$i=0;
while ($i < $num)
{
$id=mysql_result($result,$i,"id");
$artiest=mysql_result($result,$i,"artiest");
$hitcount=mysql_result($result,$i,"hitcount");
$letter=mysql_result($result,$i,"letter");
print ($i % 2) ? "<tr bgcolor=\"000000\">" : "<tr bgcolor=\"000000\">";
print "<td align=middle><a href='liedjes.php?id=$id'><b>$artiest</b></a></td></tr>";
++$i;
}
?>
The following error is given:
Parse error: parse error in /www/htdocs/lyrics/lyrics4you.org/artiesten.php on line 12
Can someone help me??
Thanxx in advance
Greetings Adam