Re: php4/mysql -- where did the mysq_close function go ?

From: Date: Sat, 19 Aug 2000 21:55:17 +0000
Subject: Re: php4/mysql -- where did the mysq_close function go ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12612@lists.php.net to get a copy of this message
Pete Lancashire writes: > php4, built with external mysql libs > > when i call either > $mysql_free_result($sql_result); > $mysql_close($dbconnection); > > i get the error > Fatal error: Call to undefined function: () in /home/.... on line ... > > the other usual calls mysql_select_db, mysql_query, .. work > > -pete Remove the dollar signs from in front of the function names--the code above is trying to call the functions whose names are given by the variables '$mysql_free_result' and '$mysql_close', which apparently aren't defined. So you'd do: mysql_free_result($sql_result); mysql_close($dbconnection); Cheers, Torben -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#12612) next »