Posts by Arquimedes de Siracusa • 123 points
2 posts
-
-2
votes6
answers66760
viewsA: "foreach" in Javascript
var i = -1; while(vetor[++i]){} Tested in Chrome and works well !
-
2
votes3
answers2818
viewsA: Check Mysql Connection Existence in PHP
Thank you Jorge B.! The solution that works best is: <?php if(is_resource($connection) && get_resource_type($connection) === 'mysql link'){ //esta conectado. } else { //não está conectado…