hi forums !
its me again.
here my code, that i struggles...
options[] is the name of my listbox. i able to pass it in to php thats print
but the bellow query does not worked. i used the $name[$i] as where condition.
why any errors in the query?
thanks in advance
chelvan
its me again.
here my code, that i struggles...
Code:
$options=$_POST['options'];
$hf=$_POST['hf'];
$arr= count($options);
if ($options){
for ($i=0;$i<count($options);$i++){
$pos[$i]= strlen($options[$i]);
$name[$i]=substr($options[$i],0,$pos[$i]);
echo $name[$i];
$sql_user=mysql_query("SELECT*FROM user WHERE username='$name[$i]'");
while($row=mysql_fetch_array($sql_user)){
echo $refno=$row['refno']."<br>";
}
}
}
options[] is the name of my listbox. i able to pass it in to php thats print
Code:
echo $name[$i];
why any errors in the query?
thanks in advance
chelvan
Comment