-1
I’m having problems in an application where some tags <? ?>
are being confused with html comments. Follow the code snippet.
<h3><?= $cadastros->num_rows(); ?> registro(s)</h3>
<? foreach($cadastros -> result() as $cadastro): ?>
In the source code, it interprets the arrows as html comment.
if I remember correctly.. in the new versions of php there has been a change in the simplification.. if I am not mistaken, it should now be used <?= ? > to simplify, and there at the beginning of your foreach there. ta missing the same.. to stay.. <?=
– Diego Lela
I already tested with the <?= E of the foreach error.
– Robson Rodrigues
friend, put all the code of your foreach to see... usually I do a foreach opening and closing { } .. hugs
– Diego Lela
<? foreach($entries -> result() as $cadastro): ? ><! -error-> <tr> <td><?= $cadastro->id ? ></td> <td>?= $registration->name ? ></td> <td><?= $registration->phone ? ></td> <td>?= $registration->email ? ></td> <td>?<= $registration->observations ? ></td> <td><?= Anchor("registration/Edit/$registration->id", "Edit") ? > | <a href="#" class='confirma_exclusion' date-id="<?= $registration->id ? >" name-date="<?= $registration->name ? >" />Delete</a></td> </tr> <? endforeach; ?>
– Robson Rodrigues
tested on an external server and worked properly
– Robson Rodrigues
edit your first post and enter the code for foreach la.. so it’s rum de ver.. This server you tested uses which version of php?
– Diego Lela