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
--- 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:
$result =
[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
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
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. mssql_query) as
--- 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-result
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 layer
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 handy.
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
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 file
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 2:36 PM
Subject: Re: [PHP] setting function variables
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
12 matches
Mail list logo