Okay, I have a really weird problem and I've been racking my brain trying to figure out a way to do this.
I have two tables. One table (we'll call it 'table1') is set up like this:
email address userinfo
email@email1.com userdata1
email@email3.com userdata3
email@email2.com userdata2
etc... etc...
In the above table, the email addresses are in no particular order cause the row is created when someone adds their userinfo.
Then I have 'table2' set up like this:
id email address
1 email@email1.com
2 email@email2.com
3 email@email3.com
etc... etc...
With id being an auto_incriment value, that signifies the order the addresses joined in.
I have a function called 'getidbyemail' that will look up an id number based on an email address, however...
I want to know if there's a way to display the 'userinfo' from table1 BUT list it in the order of the email address's id from table2. I assume this isn't possible with mysql only so I assume there is some type of php coding i would have to do (besides the 'getidbyemail' function i created) to get this to work.
There are already hundreds of rows in each table, so altering the tables would be a HUGE hassle if there's an alternative way I can fix this problem.