logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Video Tutorials
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 05-14-2009, 05:37 PM   #1
MaravillaEnt
 
Join Date: Apr 2009
Posts: 7
Default php beginners guide vid. 8

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.
MaravillaEnt is offline   Reply With Quote
Old 05-14-2009, 06:51 PM   #2
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

do{

}while()
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:21 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com