PDA

View Full Version : php beginners guide vid. 8


MaravillaEnt
05-14-2009, 06:37 PM
I am having trouble figuring out why my browser is showing a parse error while trying to run this code.

1 <?php
2 require_once("Connections/connection.php"); // database connection
3
4 //////////////////////////////////////////////////
5 $query = sprintf("SELECT * FROM table1");
6 $result = @mysql_query($query);
7 $row = mysql_fetch_array($result);
8 //////////////////////////////////////////////////
9
10 do (
11 echo $row['field3']."<br>";
12
13 )while ($row = mysql_fetch_array($result))
14
15
16 ?>


Parse error: parse error in C:\wamp\www\myfirstproject\dwc.php on line 11


whats wrong with line 11?

thanks.

davidj
05-14-2009, 07:51 PM
do{

}while()