Re: [PHP] setting function variables

2003-08-14 Thread Juan Nin
"Micah Montoy" <[EMAIL PROTECTED]> wrote: > Anyone know of way to do this, so I can use a generic name for all the functions > and be able to distribute it to those using either SQL Server or MySQL > without them having to go through the code and manually change it? use Pear's DB abstraction laye

Re: [PHP] setting function variables

2003-08-14 Thread Mark
--- Micah Montoy <[EMAIL PROTECTED]> wrote: > Tried this and it returns errors of type: > > Warning: Wrong parameter count for mssql_result() in > c:\inetpub\wwwroot\webpage10\example\utilities\dsp_del_images.php > on line 78 > > Warning: mssql_result(): supplied argument is not a valid MS > SQL

Re: [PHP] setting function variables

2003-08-14 Thread CPT John W. Holmes
From: "Mark" <[EMAIL PROTECTED]> > --- Micah Montoy <[EMAIL PROTECTED]> wrote: > > I am trying to specify a single php file to contain all the > > variables and I > > just call this file where necessary. What I am running into is > > that I want > > to do this for all the built in functions (i.e.

RE: [PHP] setting function variables

2003-08-14 Thread Jennifer Goodie
> Tried this and it returns errors of type: > > Warning: Wrong parameter count for mssql_result() in > c:\inetpub\wwwroot\webpage10\example\utilities\dsp_del_images.php > on line 78 > > Warning: mssql_result(): supplied argument is not a valid MS SQL-result > resource in > c:\inetpub\wwwroot\web

RE: [PHP] setting function variables

2003-08-14 Thread Jay Blanchard
[snip] I am trying to specify a single php file to contain all the variables and I just call this file where necessary. What I am running into is that I want to do this for all the built in functions (i.e. mssql_query) as well. I've tried numerous attempts but can't get it to operate without wanti

Re: [PHP] setting function variables

2003-08-14 Thread Mark
--- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > A good suggestion, since this is what your creating, basically. > > Anyhow, if you really want to do it your way, it'd be like this: > > $runQuery = 'mssql_query'; > $getRow = 'mssql_fetch_row'; > > Then you'd use them like this: > > $re

[PHP] setting function variables

2003-08-14 Thread Micah Montoy
I am trying to specify a single php file to contain all the variables and I just call this file where necessary. What I am running into is that I want to do this for all the built in functions (i.e. mssql_query) as well. I've tried numerous attempts but can't get it to operate without wanting to

Re: [PHP] setting function variables

2003-08-09 Thread Micah Montoy
Tried this and it returns errors of type: Warning: Wrong parameter count for mssql_result() in c:\inetpub\wwwroot\webpage10\example\utilities\dsp_del_images.php on line 78 Warning: mssql_result(): supplied argument is not a valid MS SQL-result resource in c:\inetpub\wwwroot\webpage10\example\util

Re: [PHP] setting function variables

2003-08-09 Thread CPT John W. Holmes
From: "Mark" <[EMAIL PROTECTED]> > I seem to learn something new every time you or Jennifer post (many > others as well). I never knew about variable functions. Cool! You're welcome. I wouldn't recommend that solution exactly (an abstraction class would be better), but the functions do come in han

Re: [PHP] setting function variables

2003-08-08 Thread Micah Montoya
Ooops. Can't believe I overlooked that. Thanks everyone for your input. Its up and running now. - Original Message - From: "Mark" <[EMAIL PROTECTED]> To: "Micah Montoy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, August 07, 2003

Re: [PHP] setting function variables

2003-08-08 Thread Mark
Use a database abstraction class (ADODB, Pear, or something from phpclasses.org). You're trying to assign a variable to a function's actions, when you can only assign the variable to teh ooutput of the function. --- Micah Montoy <[EMAIL PROTECTED]> wrote: > I am trying to specify a single php fil

RE: [PHP] setting function variables

2003-08-07 Thread Jennifer Goodie
> I am trying to specify a single php file to contain all the > variables and I > just call this file where necessary. What I am running into is > that I want > to do this for all the built in functions (i.e. mssql_query) as > well. I've > tried numerous attempts but can't get it to operate witho