On Thu, 23 Sep 2004 20:51:52 +0200, Antoine <melser.anton@xxxxxxxxx> wrote: > declaring it as global didn't seem to work - > > global $link; > /* Connect to database */ > $link = pg_connect("dbname=movies host=localhost user=anton > password=password") The global keyword works a little bit differently in PHP. You need to inform your function that your variable is global, as opposed to declaring it as global outside the function. Like: $link = "database connection" function processData () { global $link; ... } -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php