Jump to content

Hiperligações com ligações da BD


greyback
 Share

Recommended Posts

Eu estou a desenvolver um software de gestão de clubevídeo...

e é o seguinte, eu tenho um campo na tabela de clientes (flag) que se tiver a 1 pode alugar, se tiver a 0, não pode alugar...

eu queria fazer um select * from clientes where flag=0;

para o admin ver o que inda nao estam confirmados e confirmar, e queria uma ajuda...

ao carregar clientes não confirmados (hiperligação para a mesma página) aparecer todos os nomes dos utilizadores, com hiperligações, e quando carregasse no pretendido, abria uma caixa com todos os campos da tabela...

estao a entender? 😄

agradeço ajuda 😄

obrigado

Link to comment
Share on other sites

tipo:

$buscar_inactivos = mysql_query("SELECT * FROM clientes where flag='0' order by ID") or die (mysql_error());
while ($mostrar_inactivos = mysql_fetch_array($buscar_inactivos)) {
echo '<a href="ficheiro.php?blabla=' . $mostrar_inactivos['campo'] . '">' . $mostrar_inactivos['nome_cliente'] . '</a><br>';
}

o codigo é este, altera consoante a tua necessidade.

Link to comment
Share on other sites

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
 Share

×
×
  • 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.