keyboard
01-20-2012, 08:53 AM
Hello everyone,
I've got a database named dictionary with four fields -
id
word
hash
times
The insert code looks like this
$time = time();
$sql = mysql_query ("INSERT INTO dictionary (id,word,hash,times) VALUES ('0','".$word."','".$hash."','".$time."')");
I'd like to select the entry that has the highest times field, and then echo the word and hash fields.
Any help?
I've got a database named dictionary with four fields -
id
word
hash
times
The insert code looks like this
$time = time();
$sql = mysql_query ("INSERT INTO dictionary (id,word,hash,times) VALUES ('0','".$word."','".$hash."','".$time."')");
I'd like to select the entry that has the highest times field, and then echo the word and hash fields.
Any help?