Hi.
When I write code to connect to a database it is fine. However, when I separate the connection code and put it in say, connection.inc it just falls over, claiming parse errors. Anyone help?
---connection.inc----
<?
function connectup($link)
{
$link = mysql_connect("localhost", "user", "password") or die("Could not
connect");
print ("Connected successfully");
mysql_close($link);
mysql_select_db("temp");
}
?>
---add.php---
.
.
<?
include{"connection.inc"); //This is where I get a "PARSE" error
connectup($link);
?>
Files are all names correctly and are in the same directory. Cant spot any parse errors