its me again.
here my code, that i struggles...
Expand|Select|Wrap|Line Numbers
- $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
Expand|Select|Wrap|Line Numbers
- echo $name[$i];
why any errors in the query?
thanks in advance
chelvan