Hi. I'm relatively fresh with PHP, but I'm learning as I write a CMS for work.
I am using a mysql_fetch_array loop to fetch individual rows from the MySQL database. Currently, I'm working on a window for editing entries, and for that I use this tutorial for a "popup".
I'm using a column called ID as the auto-incrementing primary key, and I want to send this to the edit popup for the individual entries with a button for each row.
I have a <fieldset> for the code on the edit popup, and it's outside the loop. Inside the fieldset are the forms I'm going to use.
Anyhow, what has been boggling me for some hours is how to do this. I don't know any way to pass a variable from a single row inside the loop, to this popup. I've tried $_GET, but then I had to reload the page. If I simply call the popup inside the loop, it'll only show the variable of the first row because it doesn't send individual variables that way.
The edit page is called with:
echo "<a href='#' class='signin'>Edit entry</a>";
I'm sorry if this is badly written, but I have no idea how to phrase it otherwise.