Page 1 of 1

where is my database?

Posted: Thu Aug 14, 2003 3:18 pm
by monkeynme
I am extremely new to PHP. :oops: I design basic websites, and a client wants me to add pages to their existing site which uses PHP. They have a product catalog which uses a "catalog_pages.php" file to generate a product category page. Obviously it uses variables and it appears to draw from a database file. But I can't find the database file anywhere on the server. The code from the PHP page says:

<?php
$connId = mysql_pconnect("localhost", "clearad_com", "scoochpaq");
mysql_select_db("db_clearad_com");

Is it a virtual database? How do I get to it so I can add items to it and set up the "catalog_pages.php" to read the new items? You can see the actual site at http://www.clearad.com/catalog_home.htm (select a category).

Posted: Thu Aug 14, 2003 3:56 pm
by JayBird
There won't be a database file as such, like you get with a program like Microsoft Access.

You could get a script like phpMyAdmin to work with your database, or a program like MySQLyog - i use both.

Code: Select all

$connId = mysql_pconnect("localhost", "clearad_com", "scoochpaq");
the above line shows you that the MtSQL host is localhost
the username for the database is clearad_com
the password is scoochpaq

Mark