Re: function ??
| From: | CC Zona | Date: | Sat, 28 Jul 2001 07:27:15 +0000 |
| Subject: | Re: function ?? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10855@lists.php.net to get a copy of this message | ||
In article <3B62551026C.3F66PHPNET@192.168.1.6>, phpnet@SeaPort6.com
wrote:
> are INSERT INTO statements forbiden inside a function??
Assuming that you're referring to a PHP function and not a function of the
RDBMS, no it's not forbidden. Show the relevant snip of code and any error
messages being reported. Most likely, you've got a typo or syntactical
problem that's causing the insert to fail (ex. forgetting to bring a global
var into the function's local scope, an extra curly brace, missing quote,
etc.).
--
CC