nvzinho Posted July 7, 2011 Report Share Posted July 7, 2011 alguém poderia me dar uma ajuda em colocar php em echo<?php if (isset($_COOKIE['cookie'])) {echo '<!-- <?php $numero = rand(1,20); echo"$numero"; ?> -->'; } else{ echo ''; } ?> Quote Link to comment Share on other sites More sharing options...
0 ESerra Posted July 7, 2011 Report Share Posted July 7, 2011 <?php if (isset($_COOKIE['cookie'])) { $numero = rand(1,20); echo $numero; } else{ echo ''; } ?> Quote Link to comment Share on other sites More sharing options...
0 nvzinho Posted July 7, 2011 Author Report Share Posted July 7, 2011 (edited) <?php if (isset($_COOKIE['cookie'])) { $numero = rand(1,20); echo $numero; } else{ echo ''; } ?> aond eu coloco o codigo <!-- tenho que gerar o numero :$numero --> Edited July 7, 2011 by nvzinho Quote Link to comment Share on other sites More sharing options...
0 nvzinho Posted July 7, 2011 Author Report Share Posted July 7, 2011 (edited) ai edserra consegui pode ser util pra algumas pessoas valeu pela força ai<?php if (isset($_COOKIE['cookie'])) { $numero = rand(1,20); echo'<!-- '.$numero.' -->'; } else{ echo ''; } ?> Edited July 7, 2011 by nvzinho Quote Link to comment Share on other sites More sharing options...
Question
nvzinho
alguém poderia me dar uma ajuda em colocar php em echo
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.