mysqli->kill -- Asks the server to kill a MySQL thread
Syntax
Procedural style:
bool mysqli_kill ( mysqli link, int processid )
Object oriented style (method)
class mysqli { bool kill ( int processid ) }
This function is used to ask the server to kill a MySQL thread specified
by the processid parameter. This value must be
retrieved by calling the mysqli_thread_id() function.
Note:
To stop a running query you should use the SQL command
KILL QUERY processid.
/* This should produce an error */ if (!mysqli_query($link, "CREATE TABLE myCity LIKE City")) { printf("Error: %s\n", mysqli_error($link)); exit; }
/* close connection */ mysqli_close($link); ?>
The above example will output:
Error: MySQL server has gone away
Php mysqli kill Function syntax tag
mysqli kill php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php mysqli kill syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.