Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001072

[PHP-DB] Re: function ?? From: CC Zona (cczona <email protected>)
Date: 07/28/01

In article <3B62551026C.3F66PHPNET <email protected>>, phpnet <email protected>
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

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>