Xko
02-01-2005, 03:40 PM
Hey folks,
First time i've used MySQL so please be gentle... :cool:
Well i have recently downloaded MyPHPVote bit of code for my site. Thing is i need to enter to information in a .php file but i'm unsure what it to put...
Here's where i get stuck...
<?php
$MySqlHostname = "localhost";
$MySqlUsername = "root";
$MySqlPassword = "";
$MySqlDatabase = "triphp";
$ServerConnect = mysql_connect("$MySqlHostname","$MySqlUsername","$MySqlPassword")or die ("Problem:Couldn't connect to MySQL Server.");
$DatabaseConnection = @mysql_select_db("$MySqlDatabase", $ServerConnect)or die("Problem: Couldn't select the $MySqlDatabase Database.");
?>
And it tells me to "Change the above lines according to my own config".
But what's my own config?
Any pointers would be much appreciated!
First time i've used MySQL so please be gentle... :cool:
Well i have recently downloaded MyPHPVote bit of code for my site. Thing is i need to enter to information in a .php file but i'm unsure what it to put...
Here's where i get stuck...
<?php
$MySqlHostname = "localhost";
$MySqlUsername = "root";
$MySqlPassword = "";
$MySqlDatabase = "triphp";
$ServerConnect = mysql_connect("$MySqlHostname","$MySqlUsername","$MySqlPassword")or die ("Problem:Couldn't connect to MySQL Server.");
$DatabaseConnection = @mysql_select_db("$MySqlDatabase", $ServerConnect)or die("Problem: Couldn't select the $MySqlDatabase Database.");
?>
And it tells me to "Change the above lines according to my own config".
But what's my own config?
Any pointers would be much appreciated!