I tried to fetch my all data using mysql\_fetch\_array with this code

```
while($row = mysql_fetch_array($sql)){
    if($row_counter % 2){
        $row_color="bgcolor='#FFFFFF'";
    }else{
        $row_color="bgcolor='#F3F6F8'";
    }
    echo "<tr class=\"TrColor\" ".$row_color.">";
    echo "<td>" . $row['wipo_applicant1_city'] . "</td>\n";
    echo "<td>" . $row['applicant1_addr1'] . "</td>\n";
    echo "<td>" . $row['wipo_applicant1_state'] . "</td>\n"; 
    echo "<td>$" . $row['invention-title'] . "</td>\n";  
    echo "</tr>";
    $row_counter++;
}

```

but I got an error

```
syntax error, unexpected T_WHILE, expecting ',' or ';' 

```

in this line

```
while($row = mysql_fetch_array($sql)){

```

anyone know what is wrong with that line?