I'm using a very simple function:
function closeConn(){
mysql_close($conn);
}
$conn is the connection variable - it connects ok but i get this error if i try and call it:
Warning: mysql_close() expects parameter 1 to be resource, null given in
What is the reason for this?
mysqli?mysqliif it isPDO?