I want users to be able to see the name of all their odd jobs and descriptions and then be able to choose from a a list the days available for each odd job. Essentially I want the user to be displayed with their oddjob name, description, a list of days and then an update button and i want this to be repeated on the same page for each odd job so the user can see their current into, change it, select a day and hit update.
I'm trying to get the multiple list to work in php but i keep getting this error:
function update_user($update_data){
global $MemberID;
$update = array();
array_walk($update_data, 'array_sanitize');
foreach($update_data as $field=>$data){ //loop through update data in update_info.php
$update[] = '`' . $field . '` = \'' . $data . '\'';
}
("UPDATE `oddjob` SET " . implode(', ', $update). " WHERE `MemberID` = $MemberID") or die (mysql_error());
}
Please help me implement this, thanks.
Soluzione
You're echoing out a lot of HTML, using a " as a delimiter. Inside your HTML, you have: