php-windows Digest 28 Mar 2007 21:45:27 -0000 Issue 3174

Topics (messages 27598 through 27599):

Re: MSSQL returned: Invalid object name
        27598 by: Alf Stockton

php include problem
        27599 by: Pivi

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Alf Stockton wrote:
Frank M. Kromann wrote:
This sounds like your MSSQL connections are getting mixed up.

If the two databases are on the same server and the same sql login has
access to both databases you can query everything from a single conenction. You just have to qualify the tables/procedures with <database>.<user>.table
to the server knows where to look.

If you need two different connections and the host/user and passwords are
the same you must tell mssql_connect to force a new connection. Set the
optional forth parameter to true.

To be a little more clear the scenario is as follows

connect and use DB1 to get data for Stored Procedure
connect and use DB2 via Stored Procedure getting data that can be used to
get more data from DB1........and this is the one that fails.

Frank, I have tried your suggestions unfortunately without success.

The solution was to use <database>.<user>.table on the offending select statement when I eventually coded that line correctly.....:-(
Thank you.


--
Regards,
Alf Stockton            www.stockton.co.za

You will experience a strong urge to do good; but it will pass.
My email disclaimer is available at www.stockton.co.za/disclaimer.html

--- End Message ---
--- Begin Message ---
Hi!

I have this files in my root folder

index.php
header.php
footer.php
"images" folder

then i made one new folder "new" and i copied index.php, header.php and 
footer.php in this new folder (also leaving this files in root folder, too).

Now header.php and footer.php files in folder "new" are searching for images 
in folder /new/images

and it shoud be looking for images in root folder/images

How can i fix this, so that all files in root folder and same files in new 
folder retrieve images from the same location?

Thanks! 

--- End Message ---

Reply via email to