February 28th, 2000, 09:27 AM
Join Date: Feb 2000
Time spent in forums: < 1 sec
Reputation Power: 14
[QUOTE]Originally posted by ltena:
[B]Thnx for taking the time to read this post.
Well I running mi computer like a server to make my own test... I have installed PHP, Apache server and MySql Im trying to interface PHP with my sql but where do I get the following info? is there a common value that I can use??
$hostname = "devshed";
$username = "myusername";
$password = "mypassword";
$dbName = "mydbname";
Remember Im not working directly in the server Im using mi PC like a server but still I have dynamic IP's.... and no own domain...
This is an example that I use for my Postgres database - it illustrates the use of localhost. I used a similar layout when I ran mySql..
$db = pg_Connect("localhost", "","","","shopping");
$sql = "BEGIN; INSERT INTO stuff VALUES('$what','$who','$urgent'); COMMIT";
$result_set = pg_Exec( $db, $sql );