|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
parse error, unexpected T_STRING
A part of code, where is T_STRING and i dont see him... help me...
![]() --------------------------------------------------------------------------- $col = 3; // pocet sloupcu $c = 0; // docasne pocitadlo while ($veta = mysql_fetch_array($vety)) { if($c++ == 0) { // prvni sloupec echo("<tr>"); } echo("<td align="left"><a href="index.php?mesto=<? echo $veta[city]; ?>"><? echo $veta[city]; ?> (<? echo $num; ?>)</a></td>"); if($c == $col) { // posledni sloupec echo("</tr>"); // konec radku $c = 0; // pristi sloupec je prvni } } // vycisteni if($c > 0) { while($c++ != $col) { // pro kazdy zbyvajici sloupec echo("<td> </td>"); // pridat prazdnou bunku } echo("</tr>"); // konec radku } } ----------------------------------------------------------------------- |
|
#2
|
||||
|
||||
|
It's a problem with your second echo statement. First, you've got unescaped quotes within quotes. Then you're opening and closing PHP tags within an echo statement. Can't do that. REwork that lineand you should be fine.
|
|
#3
|
|||
|
|||
|
PHP Code:
should be something like PHP Code:
Let us know if it works |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > parse error, unexpected T_STRING |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|