this is my code
i wanna insert value starting with cb into no table coming from form. but i cannot count $a (just starting with cb) value
foreach($_GET as $a=>$b){
$q1 = "UPDATE no SET drm = 1,
s = '$time',
h = '$dest'
WHERE
s = '$b'";
$q2 = "UPDATE no_ta SET gsayi=gsayi+$x";
if(!mysql_query($q1) || !mysql_query($q2)){
echo "Hata No : ".mysql_errno()."<br/> Hata Mesajı :".mysql_error();
}
}
data coming from from like following
hedef-zodehala
button-Gonder
cb1-6319039
cb2-8151977
cb3-8151977
cb4-6914312
cb5-7749106
cb6-6622528
cb7-5707214
for example when i used count($a) result is 1111111 (seven one) in fact it must be just 7. how can i do it