I´ve tried your suggestion (code below)! The thing is that now when the data is presented to the user all printf's present the first option so the list that need to look like this:
I find it strange that it prints out the country option in all cases.
Country: Ireland
Location: Ireland
Year: Ireland
Department: Ireland
Description: Ireland
UniqueNumber: Ireland
Textfield: Ireland
Owner: Ireland
Filelocation: Ireland
When I want it to look like this:
Country: Ireland
Location: Dublin
Year: 02
Department: QIC
Description: Proc
UniqueNumber: 1
Textfield: Utevcklingsprocess
Owner: Asa Karlsson
Filelocation: cvs/dpt/processfiles
The code:
$result = mysql_query("select * from UniqueDocNbr order by UniqueNumber desc limit 1", $db);
printf("Country: %s<br>\n", mysql_result($result,"Country"));
printf("Location: %s<br>\n", mysql_result($result,"Location"));
printf("Year: %s<br>\n", mysql_result($result,"Year"));
printf("Department: %s<br>\n", mysql_result($result,"Department"));
printf("Description: %s<br>\n", mysql_result($result,"Description"));
printf("UniqueNumber: %s<br>\n", mysql_result($result,"UniqueNumber"));
printf("Textfield: %s<br>\n", mysql_result($result,"Textfield"));
printf("Owner: %s<br>\n", mysql_result($result,"Owner"));
printf("Filelocation: %s<br>\n", mysql_result($result,"Filelocation"));
I am very greatful for any suggestions and corrections on this!! Thanks again for the help I got so far 🙂