Originally Posted by dealmaker
I need to reference specific rows in a table without using row index because my table is sortable, so row is useless because it can change anytime. Is there a way to reference it using name or id? Is there a better way? I don't want to use a different id for each row.
mysql_query("SELECT * FROM table WHERE id='". $id ."', username='".$username."' LIMIT 1");
and yes, you can use only one of those, id or username.