Jump to content

Archived

This topic is now archived and is closed to further replies.

jacalyn

need help creating bridge.php

Recommended Posts

I'm using osCommerce Manager and they've created a work-around for people who cannot connect to their MySQL database due to servers not allowing you to set permissions. However, I need to create a bridge.php file with $username and $password to add to my directory in order to access my database through this program and have no clue how to do this. Help??

Share this post


Link to post
Share on other sites

use a include("bridge.php"); on the pages that need the database connection.


bridge.php
[code]
<?php
$db=("localhost","username","password");
mysql_select_db("databasename",$db);
?>
[/code]


I think that what you want if not sorry.

Share this post


Link to post
Share on other sites
Thanks, but I don't think that's going to work...

Here's the message I get in the program I'm using:

In order to use this you have to put bridge.php file into your store "catalog" directory.

Login and password specified here must be the same as $username and $password in "bridge.php"

Example: 

Location of bridge:  http://www.mystore.com/bridge.php
Login: 1
Password: 1

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.