Jump to content

Recommended Posts

Posted (edited)

Boas,

Eu tenho uma lista de utilizadores (administradores) e tem de haver pelo menos 1 admin, para poder gerir...

E gostaria de saber se é possível por o link ao carregar aparecer uma mensagem a dizer que "Tem de ter pelo menos um Administrador"!!

<?php
   if (!$row_users==1)
   {
  ?>
    <td width="5%">
	 <a href="#" onclick="confirmBox('<?php echo $row_users['id_utilizador']; ?>')">Remover</a>
    </td>
 <?PHP
   ;}
   else
   {
 ?>
    <td width="5%">
	 <a href="#" disabled="true" >Remover</a>
    </td>
 <?PHP
   ;}
  ;}
  else
  {}
 ?>
   </tr>
Edited by PF2G

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.