Jump to content
jnads

Re: [ERRO] PHP - RSS

Recommended Posts

jnads

Pessoal, agora já funciona mas não apresenta o valor dentro do campo Codigo:

<?php
// Código Desenvolvido por João Santos 13/07/2011 v1.1
//Ligacao ao Servidor
mysql_connect('localhost', 'root')or die ("Não foi possível estabelecer ligação!");
//Ligacao a base de dados
mysql_select_db('teste') or die ("ERRO!");
//----------------------------------------------------------------------------------
//Select
$result=mysql_query("SELECT * FROM codigos") or die("ERRO!");
echo $result;
?>

Base de Dados (Valor): http://imageshack.us/photo/my-images/683/bddata.png/

Base de Dados(Estrutura): http://imageshack.us/photo/my-images/593/bdestrutura.png/

Resultado: http://imageshack.us/photo/my-images/801/resultador.png/


João Santos

Share this post


Link to post
Share on other sites
brunoais
RTFM:http://pt.php.net/mysql_query

"[Os jovens da actual geração]não lêem porque não envolve um telecomando que dê para mirar e atirar, não falam porque a trapalhice é rainha e o calão é rei" autor: thoga31

Life is a genetically transmitted disease, induced by sex, with death rate of 100%.

Share this post


Link to post
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

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