Re: [PHP] Create unike variables for each record

2003-01-16 Thread Justin French
wouldn't you use the primary key as the unique identifier? "; echo "{$myrow['firstname']} {$myrow['lastname']}"; } } else { // show the details of a specific contact $sql = "select * from contacts where id='{$_GET['id]}' LIMIT 1"; $result = mysql_query($sql);

[PHP] Create unike variables for each record

2003-01-16 Thread Lars Espelid
Hello, I have a table in a MySQL-db. The primary-key-coloumn is a number which is not sorted. I don't know how many records there are. I have a while-loop in a php-page which prints a link for each record. Each link points to the same page (iow. page reloads). When someone click on one of these