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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to