1
I am only trying to get the name of a column of a database table, and it always returns me only Resource id #4, I will send a part of my code.
<?php
mysql_connect('localhost', 'root', '') or die ("Erro ao conectar!");
mysql_select_db('agenda') or die ("Erro ao conectar!");
?>
<?php
$iid = $_GET['id'];
//echo $iid;
$nomepessoa = "SELECT nome FROM pessoa WHERE id = $iid";
$queryy = mysql_query($nomepessoa);
echo $queryy;
?>
Just complementing, you have to pass the parameter in the function
mysql_fetch_assoc ( resource $result )
– Jeferson Assis
@Jefersonassis, thank you, corrected.
– rray
Yes it worked properly, thank you very much! And thanks for the tips rray.
– Sr. Bigode