Thank you very much!
I create database as follows:
create table login (
username varchar(16) not null,
password varcahr(15) not null,
ID int unsigned not null auto_increment primary key
)
PHP codes :
<?
$link=mysql_pconnect('localhost','root','secret') or die("Sorry");
mysql_select_db($DB,$link) or die("Sorry");
$query="select * from login ";
$result=mysql_query($query);
$arry=mysql_fetch_array($result);
echo $arry['username'];
echo $arry['password'];
echo $arry{'ID'];
?>
Vincent wrote:
Show us the code you are using so we can see what you are doing wrong :-)