Delta Storm wrote:
> Hi,
>
> I'm having problems with this code (a simple exercise where i wanto to
> connect to sql server and get data from it and write that data in html)
>
> //Prolazi kroz skup zapisa
> //ispisuje svako polje
> while ($row = mysql_fetch_row($result)
^--- HERE YOUR MISSING A ')' !
> {
> echo "<tr>";
> echo "<td>" . $row [0] ."</td>";
> echo "<td>" . $row [1] ."</td>";
> echo "<td>" . $row [2] ."</td>";
> echo "</tr>";
> }
> echo "</table>";
...
> the error is : "Parse error: parse error, unexpected '{' in C:\Program
> Files\XAMPP\xampp\htdocs\test_folder\exercise23.php on line 41"
>
> I really dont know why is this error showing i looked for syntax errors
> but i think that there aren't any
if php is telling you there is a parse error then you have a syntax error,
there are no exceptions to this rule.
>
> (P.S dont read the commnents they are croatian)
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php