This script is giving me some problems. I am not sure why. It is prob. down to some tiny little thing.
Anyway... here's the script and the error:
<?php
/* Connecting, selecting database */
$link = mysql_connect("localhost", "zingbats", "my pwl")
or die("Could not connect");
mysql_select_db("tycooneden_com") or die("Could not select database");
$query = "SELECT * FROM clans WHERE clan_name = '$clan'";
$result = mysql_query($query) or die("Query failed");
$foo=mysql_fetch_array($result);
/* Start the clan defining */
$clan_url=$foo['clan_url'];
$clan_Logo=$foo['clan_logo'];
$clan_admin=$foo['clan_admin'];
$clan_admin_email=$foo['clan_admin_email']
$clan_forum=$foo['clan_forum'];
$clan_name=$foo['clan_name'];
print "URL: $clan_url, forum = $clan_forum";
mysql_close($link);
?>
Gives the error:
[b]Parse error[/b]: parse error, unexpected T_VARIABLE in [b]/path/clan.php[/b] on line [b]17[/b]