J jchal Active Member Licensed User Longtime User Feb 28, 2017 #1 hi all what is the command in php jason that we need to put in order to stop a connection to my sql server? Code: Copy $con = mysql_connect($host,$user,$pw) or die(mysql_error()); do i have to put Code: Copy $con.end() in order to stop the connections?
hi all what is the command in php jason that we need to put in order to stop a connection to my sql server? Code: Copy $con = mysql_connect($host,$user,$pw) or die(mysql_error()); do i have to put Code: Copy $con.end() in order to stop the connections?
R ronell Well-Known Member Licensed User Longtime User Feb 28, 2017 #2 not sure but try this .. PHP: Copy mysql_close($con); if($con) { echo "disconnect successfully" } Last edited: Feb 28, 2017 Upvote 0