What I think should happen is when the data is altered and submit is pressed the data should go into an array and then I need another loop to update the database ?
Can someone point me in the right direction please?
Getting closer now; just this error :You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '[0], approve = approve[0] WHERE name = 'name[0]'' at line
I am now posting to another page to update db.
PHP Code:
<?php
$query = "SELECT name, text, approve FROM data WHERE approve ='N'";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
echo '<form method="POST" action="confirm.php">';
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);