Steve, below is part of the function & that i am trying to get it to work with
function FriendSend($qID) {
$connection = mysql_connect("$connectdb","$uname","$pass")
or die ("Couldn't connect to server.");
$db = mysql_select_db("qna", $connection) or die ("Unable to select database.");
//create sql statement
$sql = "SELECT Que from qna where qID=$qID";
// echo "$sql";
//execute sql query and get results
$sql_result = mysql_query($sql) or die("Couldn't execute query.");
// $row = mysql_num_rows($sql_result);
list($Que) = mysql_fetch_row($sql_result);