English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm trying to write a short PHP script that outputs a bunch of table rows and I'm getting the error message "". That sounds like classic missing semicolon, but I've gone through the code with a fine-toothed comb and found nothing askew.

for ($bitnumber = 0; $bitnumber <= 40; $bitnumber++)
{
echo '' . $bitnumber . '';
echo '';
echo '';
echo '';
echo '\n';
} ?>

2007-02-02 10:19:47 · 2 answers · asked by manuelriliz 3 in Computers & Internet Programming & Design

Sorry, got cut off by the limit. The error message was "Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' "

2007-02-02 10:22:34 · update #1

2 answers

Haven't php'ed for a while.

I put your code into a new document and tested it in my browser. I don't get any parse errors. Works well except \n shows through. I changed the last line to echo " \n";






for ($bitnumber = 0; $bitnumber <= 40; $bitnumber++)
{
echo '';
echo '';
echo '';
echo '';
echo " \n";
} ?>



I'm using php 5.1.2

2007-02-02 11:46:08 · answer #1 · answered by jason b 5 · 0 0

this question is slightly too imprecise to respond to. it ought to help in case you presented the style of the `aliens_abduction` table, also the completed blunders. P.S. i anticipate that that is a typo, contained in the first row. $dbc should be a valid connection. Do you employ mysqli_connect? P.P.S. i will edit the answer periodically, once you grant better information.

2016-12-03 09:13:28 · answer #2 · answered by kuebler 4 · 0 0

fedest.com, questions and answers
' . $bitnumber . '