"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
--- 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
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.
> 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
[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
--- "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
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
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
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
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
> 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
11 matches
Mail list logo