can u create a RecordSet in a function??
Posted: Thu Jun 15, 2006 5:01 am
hi guys,
im using php and mysql.
Ive a function that creates a table displaying the data from a passed RecordSet(RS). one of the columns in the table needs to be populated by creating a new second RS which uses data from the first RS in its WHERE clause.
when i try to create this second RS i get an error saying that the database connection string is invalid?! i am positive that the connection string is valid as its used in other parts of the page's script.
This reason for this error seems to be my trying to create the RS in a function?!! can anyone give me some advice on this please? can u create an RS in a function?
many thanks for any help
the error is:
Notice: Undefined variable: database_database_connection in somepage.php on line 428
im using php and mysql.
Ive a function that creates a table displaying the data from a passed RecordSet(RS). one of the columns in the table needs to be populated by creating a new second RS which uses data from the first RS in its WHERE clause.
when i try to create this second RS i get an error saying that the database connection string is invalid?! i am positive that the connection string is valid as its used in other parts of the page's script.
This reason for this error seems to be my trying to create the RS in a function?!! can anyone give me some advice on this please? can u create an RS in a function?
many thanks for any help
the error is:
Notice: Undefined variable: database_database_connection in somepage.php on line 428