vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello, is it possible to access a session variable from inside an UDF? Or as a more general case: is it possible to issue a query on the server with the context of the current user? (I cannot use the mysql c-lib because i need to know a user/password to let the udf connect to the own server) Thanks for your answers, Dennis |
| ||||
| Dennis Birkholz wrote: > Hello, > > is it possible to access a session variable from inside an UDF? > Or as a more general case: is it possible to issue a query on the server > with the context of the current user? (I cannot use the mysql c-lib > because i need to know a user/password to let the udf connect to the own > server) > > Thanks for your answers, > > Dennis > You can pass the session variable as a parameter to the UDF. But the UDF runs under a MySQL process, not your web server's process, and cannot access anything from the server not passed to it. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |