View Single Post
Old 06-28-2007, 07:04 AM   #1 (permalink)
markster
Code Monkey
 
markster's Avatar
 
Join Date: Jun 2006
Posts: 65
markster is on a distinguished road
Functions and Includes

Is it possible to run a function at was declared in an include?

The function called scanMsg is declared in one file, and this file is included from another one. One of the function parameters is given from MySQL, is this code I'm using here OK?

PHP Code:
<?php
include("http://www.##########################-msg.php"); // Function declared in here
$tid mysql_result(mysql_query("SELECT tid FROM table WHERE id = $uid LIMIT 1;"),0,0);
scanMsg($msg,$tid,"Sky High Chat");
?>
The variable $uid is declared earier in the file.

Whats wrong with this?

- Mark
__________________
Stuff4Web.co.uk - The ultimate resource for webmasters

50% off all orders £1-£50! Just enter the code AGSIG01 at the checkout! Offer ends: 01/09/2008
markster is offline   Reply With Quote