Reply to Parse error: parse error, unexpected T_ELSE

Your name:

Reply:


Posted by Mark Sargent on 10/30/84 11:14

Hi All,

again, I'm following an example from webmonkey,

http://webmonkey.wired.com/webmonkey/99/21/index3a_page2.html?tw=programming

and I'm changing only what's relevant to me. I haven't altered the code
basics, though. But I get the error regarding "else". I don't see what
it is. Anyone..? Cheers.

Mark Sargent.

*Parse error*: parse error, unexpected T_ELSE in
*/var/www/html/phpmysqltable.php* on line *41*

25 if ($myrow = mysql_fetch_array($result)); {
26
27 echo "<table border=1>\n";
28
29 echo "<tr><td>Product Name</td><td>Product Model
Number</td><td>Product
30 Serial Number</td></tr>\n";
31
32 do {
33
34 printf("<tr><td>%s</td><td>%s</td><td>%s</td></tr>\n",
$myrow[product_name], $myrow[product_model_number],
35 $myrow[product_serial_number]);
36
37 } while ($myrow = mysql_fetch_array($result));
38
39 echo "</table>\n";
40
41 } else {
42
43 echo "Sorry, no data is available for that request";
44
45 }

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация