Question: I want something like this?

```
$sql = mysql_query("SELECT lid, ip FROM lua where uid='$uid'"); 
$rows = mysql_fetch_array($sql);
$ip = $rows['ip'];
$res = array('value 1 of $ip from datebase','value 2 of $ip from datebase','value 3 of $ip        from datebase.......');
?>

```

Is it possible?
help related this...thnxx..

Answer: 
try this:

```
$arrResult = array();
while ($row = mysql_fetch_array($sql)) {
    $arrResult[] = $row['ip'];
}

```
```
$result = mysql_query("SELECT ip FROM lua where uid='$uid'"); 
$ip = array();  
while ($ip[] = mysql_fetch_field($result));
$ip = array_filter($ip);

```