I have 2 arrays:
$gather = $_POST['gather'];
$client_id = $_POST['client_id'];
RESULTS:
Array1 ( [0] => hashtag [1] => followers [2] => latitude [3] => followers [4] => hashtag )
Array2 ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 )
I want to use a foreach statement like this:
foreach($gather as $value)
{
$update = mysql_query("UPDATE gather set gather_choice = '".$value."' where client_id = '".$client_id[]."' ")or die(mysql_error());
}
But each of my foreach statement need to take array1[0] and array2[0] .. then array1[1] and array2[1]
In the example, I don't know how to use the '".$client_id[]."' to get the proper value for my sql query...
thanks