Hi,
You have your function calls enclosed in quotes, e.g.
$result = "mysql_query($sql)";
$row = "mysql_fetch_array($result)";
what you prob. meant was
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
still, your script will still loop continuously as mysql_fetch_array() only fetches the first row of a result. You have to call this in some sort of loop e.g.
while($row = mysql_fetch_array($result))
{
...
}