Hi,
It always stated that 'No Database Selected'. Really need your help. Thanks :)
This is the coding
<?php
require('include/config.php');
$conn = mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db,$conn);
$sql = " SELECT * FROM hod_approval WHERE hod_approval='2' ";
$result = mysql_query($sql) or die (mysql_error());
Here's my config.php
<?php
$db = 'TADMS';
$db_host = 'localhost';
$db_user = 'an';
$db_pwd = 'nopassword';
$conn = odbc_connect($db, $db_user, $db_pwd);