hiya guys and girls
ive managed to connect to my db but i cant figure out the code to actually print data from it into browser.
can someone please look at the code and tell me what i'm missing? i would like to print the contents of the cell newsId = 00001 in the headline column.
$host = "localhost";
$user = "";
$password = "";
$database = "test";
$connection = mysql_connect($host, $user, $password);
$db = mysql_select_db($database, $connection);
$query = "select HEADLINE from news where newsId='00001'";
$result = mysql_query($query) or die ("Couldn't execute query.");