faqts : Computers : Databases : MySQL : Utility : PHPRunner

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 2 people (0%) answered Yes
Recently 0 of 2 people (0%) answered Yes

Entry

Database: MySql: PHPRunner: Connection: Data: How to change manually your connection data?

May 7th, 2005 11:31
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 08 May 2005 - 01:41 am ------------------------

Database: MySql: PHPRunner: Connection: Data: How to change manually 
your connection data?

---
---

Method: 1

---

 1. -Goto the file
     (e.g. after uploading to your ftp site)

      dbconnection.php

 2. -Hardcode the hostname, username and password

e.g.

--- cut here: begin --------------------------------------------------

   // $conn = mysql_connect($strhost,$user,$pwd);

   $conn = mysql_connect( "mysqlhost", "myusername", "mypassword" );

--- cut here: end ----------------------------------------------------

 3. -Save this file

---
---

Method: 2

---

 1. -you can manually put all the connection data into the beginning of
     the file

      dbconnection.php

 2. -then remove the connection data manually from the top of the files

     1. all ..._variables.php

     2. dbcommon.php

---
---

Note:

The file

 dbcommon.php

is used for your login and registration related pages

while the files

 ..._variables.php

are used by table pages.

---
---

Internet: see also:

---

No Database Selected
http://www.asprunner.com/forums/index.php?
s=022d1540e1fc8047f7bf6b7d5570af06&showtopic=1374

---

Database: MySql: PHPRunner: Link: Can you give an overview of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/35950/fid/1805

----------------------------------------------------------------------