I just started working with mysql and I'm very novice
Created a simple database and programmed php to connect as follows...

<?php
include ("webvars.inc");
// webvars file is this
//<?php$user = "???";$hostname =" ???";$password = "pass";
//$db="cs"?>
$link= mysql_connect($hostname,$user,$password)or die ("_something is
whong");
mysql_select_db($db,$link);
$query ="SELECT * FROM projects";
$result = mysql_query($query);
$array = mysql_fetch_array($result);
$usercount = mysql_num_rows($result);
mysql_close($link);
?> 

Question 1 
I put the files created from mysql(MYI ,MYD,frm) in the correct
directory at my site  
Is this correct or do they need some kind of compilling? 

Question 2 
How do I Grant my host name and user name 
I'm comfused..It gives me an error message Can't connect because of host
and user mistake..

Thanks Aaron

Reply via email to