how to escape and insert in mysql database using php
<input type="text" name="job_name">
<input type="text" name="job_code">
<input type="text" name="roles[]">
<input type="text" name="roles[]">
<input type="text" name="roles[]">
<input type="text" name="return[]">
<input type="text" name="return[]">
<input type="text" name="return[]">
$job_name = $_POST['job_name'];
$job_code = $_POST['job_code'];
$rool_weight = $_POST['rools'];
$return_weight = $_POST['return'];
how to scape all the value including array and variable. and insert variable repeatly on very row and array..