BASIC function question

From: Date: Tue, 24 Apr 2001 03:27:05 +0000
Subject: BASIC function question
Groups: php.general 
Request: Send a blank email to php-general+get-50003@lists.php.net to get a copy of this message
I have a function on an include page that says function update_stuff($database) { include("includes/connect.inc.php"); include("config/db.conf.php"); $query="SELECT * FROM $database"; $query_res=mysql_query($query, $mysql_link); $isequip=mysql_num_rows($query_res); } If I call it from a script as update_stuff(equipment); I don't get any result (I want to page to automagically update it's contents) while if I include the query lines after each edit case it does update the page contents. I'm missing something basic, but what? Martin S.

« previous php.general (#50003) next »