Jump to content


Photo

need help creating bridge.php


  • Please log in to reply
2 replies to this topic

#1 jacalyn

jacalyn
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 October 2006 - 03:44 PM

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??

#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 06 October 2006 - 03:49 PM


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


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


I think that what you want if not sorry.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#3 jacalyn

jacalyn
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 October 2006 - 03:58 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users