Can I put it into a loop. So it can calculate hom many fields there is after the id field and delete all data past that. ??
I could put the mysql_query into a function using
function updatecolomb($name)
{
UPDATE table_name SET $name='' WHERE id='$session[id]';
}
while(?whatever)
{
updatecolom[$name)
}
But how can I count hom many fields there is apart from the id field. See I will be changing the data quite often so I need to have the script count the colombs and do it automatically
Lee